Skip to content

Commit

Permalink
change dependencies for consuming as compileClasspath projects
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Nov 30, 2023
1 parent 4b271ed commit 6eadb8f
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ compileJava {
options.release = 19
}
dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.2.3'
implementation group: 'org.apache.kafka', name: 'kafka-clients', version: '2.1.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.2'
implementation group: 'net.sf.supercsv', name: 'super-csv-java8', version: '2.4.0'
implementation 'com.github.f4b6a3:uuid-creator:4.5.0'
implementation 'com.google.guava:guava:28.1-jre'
implementation 'org.reflections:reflections:0.10.2'
implementation 'com.github.java-json-tools:json-patch:1.13'
implementation 'org.glassfish:javax.json:1.1.4'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.4'
implementation 'org.dizitart:nitrite:3.4.3'
implementation group: 'com.fasterxml.jackson.datatype', name:'jackson-datatype-jsr310', version:'2.15.2'
implementation 'com.github.jsqlparser:jsqlparser:4.6'
api group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.2.3'
api group: 'org.apache.kafka', name: 'kafka-clients', version: '2.1.0'
api group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.2'
api group: 'net.sf.supercsv', name: 'super-csv-java8', version: '2.4.0'
api 'com.github.f4b6a3:uuid-creator:4.5.0'
api 'com.google.guava:guava:28.1-jre'
api 'org.reflections:reflections:0.10.2'
api 'com.github.java-json-tools:json-patch:1.13'
api 'org.glassfish:javax.json:1.1.4'
api group: 'org.apache.commons', name: 'commons-collections4', version: '4.4'
api 'org.dizitart:nitrite:3.4.3'
api group: 'com.fasterxml.jackson.datatype', name:'jackson-datatype-jsr310', version:'2.15.2'
api 'com.github.jsqlparser:jsqlparser:4.6'
}

task sourceJar(type: Jar) {
Expand All @@ -58,6 +58,16 @@ publishing {

artifact sourceJar
artifact javadocJar

pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
}
}
}
repositories {
Expand Down

0 comments on commit 6eadb8f

Please sign in to comment.