Skip to content

Commit d5899e4

Browse files
committed
fix
1 parent 0d42ff1 commit d5899e4

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release-snapshot.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
required: true
1818
sonatype_password:
1919
required: true
20+
maven_central_username:
21+
required: true
22+
maven_central_password:
23+
required: true
2024

2125
jobs:
2226
release-snapshot:
@@ -53,4 +57,6 @@ jobs:
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 }}

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import com.vanniktech.maven.publish.JavaLibrary
2+
import com.vanniktech.maven.publish.JavadocJar
3+
14
plugins {
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

0 commit comments

Comments
 (0)