Skip to content

Commit 74ff4cf

Browse files
committed
back to old publishing
1 parent 6cf9eb2 commit 74ff4cf

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

Diff for: .github/workflows/ci-java.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
163163
uses: gradle/gradle-build-action@v3
164164
with:
165-
arguments: publishToMavenCentral
165+
arguments: publish
166166
gradle-version: "8.6"
167167
build-root-directory: java
168168

Diff for: java/build.gradle

+8-26
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ dependencies {
2323
implementation 'org.jetbrains:annotations:26.0.1'
2424
implementation 'io.github.cdimascio:dotenv-java:3.1.0'
2525
implementation 'com.ibm.async:asyncutil:0.1.0'
26+
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.780'
2627
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
28+
implementation 'io.github.cdimascio:dotenv-java:2.2.0'
2729
testImplementation 'org.testng:testng:7.10.2'
2830
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
2931
testImplementation 'org.mockito:mockito-core:5.14.2'
3032
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.3'
31-
testImplementation 'com.amazonaws:aws-java-sdk-s3:1.12.780'
3233
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
3334
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.4'
3435

@@ -70,7 +71,6 @@ tasks.register('testWithoutErrorLogProducer', Test) {
7071
publishing {
7172
publications {
7273
mavenJava(MavenPublication) {
73-
7474
pom {
7575
name = 'G DATA VaaS'
7676
description = 'Verdict-as-a-Service (VaaS) is a service that provides a platform for scanning files for malware and other threats. It allows easy integration in your application. With a few lines of code, you can start scanning files for malware.'
@@ -92,40 +92,22 @@ publishing {
9292
connection = 'scm:git:[email protected]:GDATASoftwareAG/vaas.git'
9393
url = 'https://github.com/GDATASoftwareAG/vaas'
9494
}
95+
9596
from components.java
9697
}
9798
}
9899
}
99100

100101
signing {
101-
if (findProperty("signingKey") != null && findProperty("signingPassword") != null) {
102-
def signingKey = findProperty("signingKey")
103-
def signingPassword = findProperty("signingPassword")
104-
useInMemoryPgpKeys(signingKey, signingPassword)
105-
sign publishing.publications.mavenJava
106-
} else {
107-
logger.lifecycle("Skipping signing as this is not a release build or no signing credentials are provided.")
108-
}
102+
def signingKey = findProperty("signingKey")
103+
def signingPassword = findProperty("signingPassword")
104+
useInMemoryPgpKeys(signingKey, signingPassword)
105+
sign publishing.publications.mavenJava
109106
}
110107

111-
112108
repositories {
113109
maven {
114110
url = layout.buildDirectory.dir('repos/releases')
115111
}
116112
}
117-
}
118-
119-
tasks.register('publishToLocalMaven') {
120-
group = 'publishing'
121-
description = 'Publish the library to the local Maven repository (~/.m2/repository).'
122-
123-
dependsOn 'publishMavenJavaPublicationToMavenLocal'
124-
}
125-
126-
tasks.register('publishToMavenCentral') {
127-
group = 'publishing'
128-
description = 'Publish the library to Maven Central.'
129-
130-
dependsOn 'publishMavenJavaPublicationToMavenRepository'
131-
}
113+
}

0 commit comments

Comments
 (0)