@@ -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) {
7071publishing {
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