File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 required : true
1818 sonatype_password :
1919 required : true
20+ maven_central_username :
21+ required : true
22+ maven_central_password :
23+ required : true
2024
2125jobs :
2226 release-snapshot :
5357 run : ./gradlew -Pversion=${{env.project_version_snapshot}} publishToMavenCentral
5458 env :
5559 SONATYPE_USERNAME : ${{ secrets.sonatype_username }}
56- SONATYPE_PASSWORD : ${{ secrets.sonatype_password }}
60+ SONATYPE_PASSWORD : ${{ secrets.sonatype_password }}
61+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.maven_central_username }}
62+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.maven_central_password }}
Original file line number Diff line number Diff line change 1+ import com.vanniktech.maven.publish.JavaLibrary
2+ import com.vanniktech.maven.publish.JavadocJar
3+
14plugins {
25 id ' java-library'
36 // to unleash the lombok magic
@@ -159,6 +162,9 @@ mavenPublishing {
159162
160163 // signAllPublications()
161164
165+ // Use the sources and javadoc jars
166+ configure(new JavaLibrary (new JavadocJar.Javadoc (), true ))
167+
162168 pom {
163169 name = project_name
164170 description = project_description
You can’t perform that action at this time.
0 commit comments