Skip to content

Commit

Permalink
fix: provide dependency versions for Spring
Browse files Browse the repository at this point in the history
  • Loading branch information
iamceph committed Mar 18, 2022
1 parent efe09d9 commit 18412be
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
3 changes: 0 additions & 3 deletions gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ apply from: '../publishing.gradle'
def publishKey = System.getenv('GRADLE_PUBLISH_KEY')
def publishSecret = System.getenv('GRADLE_PUBLISH_SECRET')
if (publishSecret != null && publishKey != null) {
System.out.println("Setting publish key/secret.")
System.setProperty("gradle.publish.key", publishKey)
System.setProperty("gradle.publish.secret", publishSecret)
} else {
System.out.println("Key/Secret not available for publishing!")
}


Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ RSOCKET_IPC_VERSION=0.3.0
RSOCKET_RPC_VERSION=0.3.0
PROTOBUF_VERSION=3.19.2

PROTOBUF_PLUGIN_VERSION=0.8.18
PROTOBUF_PLUGIN_VERSION=0.8.18

SPRING_VERSION=2.6.4
15 changes: 7 additions & 8 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ publishing {
dependencyNode.appendNode('scope', 'provided')
}
}
if (!project.tasks.findByName("shadowJar")) {
project.configurations.api.dependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
dependencyNode.appendNode('scope', 'compile')
}

project.configurations.api.dependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
dependencyNode.appendNode('scope', 'compile')
}
}

Expand Down
6 changes: 3 additions & 3 deletions server-starter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.6.4'
id 'org.springframework.boot' version "${SPRING_VERSION}"
}

apply plugin: 'java'
Expand All @@ -12,11 +12,11 @@ apply from: '../publishing.gradle'

dependencies {
compileOnly group: 'org.jetbrains', name: 'annotations', version: JETBRAINS_ANNOTATIONS_VERSION
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
compileOnly group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: SPRING_VERSION

implementation group: 'com.iamceph.resulter', name: 'resulter-core', version: RESULTER_VERSION

api group: 'org.springframework.boot', name: 'spring-boot-starter'
api group: 'org.springframework.boot', name: 'spring-boot-starter', version: SPRING_VERSION

api group: 'io.rsocket', name: 'rsocket-core', version: RSOCKET_VERSION
api group: 'io.rsocket', name: 'rsocket-transport-netty', version: RSOCKET_VERSION
Expand Down

0 comments on commit 18412be

Please sign in to comment.