Skip to content

Commit add2414

Browse files
committed
Changes for the publishing task
1 parent e6c3ac3 commit add2414

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ plugins {
2424
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
2525
}
2626

27+
nexusPublishing {
28+
repositories {
29+
sonatype{
30+
nexusUrl.set(uri('https://ossrh-staging-api.central.sonatype.com/service/local/'))
31+
snapshotRepositoryUrl.set(uri('https://central.sonatype.com/repository/maven-snapshots/'))
32+
username.set(System.getenv("MAVEN_USERNAME"))
33+
password.set(System.getenv("MAVEN_PASSWORD"))
34+
}
35+
}
36+
}
37+
38+
apply plugin: 'io.github.gradle-nexus.publish-plugin'
39+
40+
2741
subprojects {
2842
apply plugin: 'org.jetbrains.dokka'
2943
}

gradle/maven-publish.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,6 @@ publishing {
5353
connection = POM_SCM_CONNECTION
5454
developerConnection = POM_SCM_DEV_CONNECTION
5555
}
56-
57-
withXml {
58-
def dependenciesNode = asNode().appendNode('dependencies')
59-
60-
project.configurations.implementation.allDependencies.each {
61-
def dependencyNode = dependenciesNode.appendNode('dependency')
62-
dependencyNode.appendNode('groupId', it.group)
63-
dependencyNode.appendNode('artifactId', it.name)
64-
dependencyNode.appendNode('version', it.version)
65-
}
66-
}
67-
}
68-
}
69-
}
70-
71-
nexusPublishing {
72-
repositories {
73-
sonatype{
74-
nexusUrl.set(uri('https://ossrh-staging-api.central.sonatype.com/service/local/'))
75-
snapshotRepositoryUrl.set(uri('https://central.sonatype.com/repository/maven-snapshots/'))
76-
username.set(System.getenv("MAVEN_USERNAME"))
77-
password.set(System.getenv("MAVEN_PASSWORD"))
7856
}
7957
}
8058
}

0 commit comments

Comments
 (0)