Skip to content
Merged
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ dependencies {
exclude(group = "org.hamcrest")
}
funcTestImplementation(sourceSets.main.get().output)
funcTestImplementation(intiTest.output)

lintChecks(libs.androidx.gradlePluginLints)
lintChecks(libs.assertk.lint)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ abstract class AbstractMavenModule extends AbstractModule implements MavenModule
}

@Override
MavenModule dependsOn(String group, String artifactId, String version) {
this.dependencies << [groupId: group, artifactId: artifactId, version: version, type: type]
MavenModule dependsOn(String groupId, String artifactId, String version) {
this.dependencies << [groupId: groupId, artifactId: artifactId, version: version, type: type]
return this
}

Expand Down Expand Up @@ -111,12 +111,12 @@ abstract class AbstractMavenModule extends AbstractModule implements MavenModule
updateRootMavenMetaData(rootMavenMetaData)

if (publishesMetaDataFile()) {
publish(metaDataFile) { Writer writer ->
publishWithWriter(metaDataFile) { Writer writer ->
writer << getMetaDataFileContent()
}
}

publish(pomFile) { Writer writer ->
publishWithWriter(pomFile) { Writer writer ->
def pomPackaging = packaging ?: type
writer << """
<project xmlns="http://maven.apache.org/POM/4.0.0">
Expand Down Expand Up @@ -160,7 +160,7 @@ abstract class AbstractMavenModule extends AbstractModule implements MavenModule
private void updateRootMavenMetaData(File rootMavenMetaData) {
def allVersions = rootMavenMetaData.exists() ? new XmlParser().parseText(rootMavenMetaData.text).versioning.versions.version*.value().flatten() : []
allVersions << version
publish(rootMavenMetaData) { Writer writer ->
publishWithWriter(rootMavenMetaData) { Writer writer ->
def builder = new MarkupBuilder(writer)
builder.metadata {
groupId(groupId)
Expand Down Expand Up @@ -203,7 +203,7 @@ abstract class AbstractMavenModule extends AbstractModule implements MavenModule
if (type == 'pom') {
return artifactFile
}
publish(artifactFile) { Writer writer ->
publishWithWriter(artifactFile) { Writer writer ->
writer << "${artifactFile.name} : $artifactContent"
}
return artifactFile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.github.jengelman.gradle.plugins.shadow.util.repo.maven

import org.jetbrains.annotations.NotNull

class MavenFileModule extends AbstractMavenModule {
private boolean uniqueSnapshots = true

Expand Down Expand Up @@ -32,7 +34,7 @@ class MavenFileModule extends AbstractMavenModule {
}

@Override
protected onPublish(File file) {
protected void onPublish(@NotNull File file) {
sha1File(file)
md5File(file)
}
Expand Down
Loading
Loading