File tree Expand file tree Collapse file tree 2 files changed +14
-22
lines changed
Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Original file line number Diff line number Diff 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+
2741subprojects {
2842 apply plugin : ' org.jetbrains.dokka'
2943}
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments