Skip to content

Commit

Permalink
Merge branch 'release/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeorgiev committed Oct 7, 2022
2 parents 339fd49 + 606fa86 commit f8fc242
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ plugins {
kotlin("jvm") apply false
`maven-publish`
signing
id("io.codearte.nexus-staging")
kotlin("plugin.spring") apply false
id("org.springframework.boot") apply false
id("io.spring.dependency-management") apply false
Expand All @@ -55,6 +56,12 @@ plugins {
id("jacoco")
}

nexusStaging {
serverUrl = "$sonaTypeBasePath/service/local/"
username = sonaTypeMavenUser
password = sonaTypeMavenPassword
}

jgitver {
strategy = fr.brouillard.oss.jgitver.Strategies.PATTERN
versionPattern =
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ palantirGitVersion=0.12.2
jacocoToolVersion=0.8.7
jGitVerVersion=0.9.1
dokkaVersion=1.6.21
nexusStagingVersion=0.30.0

# Core infrastructure libs versions
kotlinVersion=1.6.21
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pluginManagement {
val jGitVerVersion: String by settings
val protobufPluginVersion: String by settings
val dokkaVersion: String by settings
val nexusStagingVersion: String by settings

plugins {
kotlin("jvm") version kotlinVersion apply false
Expand All @@ -24,6 +25,7 @@ pluginManagement {
id("fr.brouillard.oss.gradle.jgitver") version jGitVerVersion
id("com.google.protobuf") version protobufPluginVersion apply false
id("org.jetbrains.dokka") version dokkaVersion
id("io.codearte.nexus-staging") version nexusStagingVersion
}

repositories {
Expand Down
7 changes: 5 additions & 2 deletions we-node-client-grpc/we-node-client-grpc-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.google.protobuf.gradle.protoc
val protobufVersion: String by project
val ioGrpcVersion: String by project
val ioGrpcKotlinVersion: String by project
val osxArch: String? by project

plugins {
id("com.google.protobuf")
Expand All @@ -34,13 +35,15 @@ val grpcJavaPlugin = "grpc"
protobuf {
generatedFilesBaseDir = "$buildDir/generated-sources"

val archPostFix = if (osxArch == "m1") ":osx-x86_64" else ""

protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
artifact = "com.google.protobuf:protoc:$protobufVersion$archPostFix"
}

plugins {
id(grpcJavaPlugin) {
artifact = "io.grpc:protoc-gen-grpc-java:$ioGrpcVersion"
artifact = "io.grpc:protoc-gen-grpc-java:$ioGrpcVersion$archPostFix"
}
}

Expand Down

0 comments on commit f8fc242

Please sign in to comment.