Merge pull request #49 from maxlambrecht/master
Use google osdetector plugin instead of internal gradle class.
This commit is contained in:
commit
accb81c8d6
|
|
@ -39,7 +39,7 @@ protobuf {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
if (gradle.ext.isMacOsX) {
|
||||
if (osdetector.os.is('osx') ) {
|
||||
compileOnly(project('grpc-netty-macos'))
|
||||
testImplementation(project('grpc-netty-macos'))
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ dependencies {
|
|||
api(project(':java-spiffe-core'))
|
||||
|
||||
// runtimeOnly grpc-netty dependency module will be included in the shadowJar
|
||||
if (gradle.ext.isMacOsX) {
|
||||
if (osdetector.os.is('osx') ) {
|
||||
runtimeOnly(project(':java-spiffe-core:grpc-netty-macos'))
|
||||
} else {
|
||||
runtimeOnly(project(':java-spiffe-core:grpc-netty-linux'))
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ dependencies {
|
|||
api(project(":java-spiffe-core"))
|
||||
|
||||
// runtimeOnly grpc-netty dependency module will be included in the shadowJar
|
||||
if (gradle.ext.isMacOsX) {
|
||||
if (osdetector.os.is('osx') ) {
|
||||
runtimeOnly(project(':java-spiffe-core:grpc-netty-macos'))
|
||||
} else {
|
||||
runtimeOnly(project(':java-spiffe-core:grpc-netty-linux'))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import org.gradle.internal.os.OperatingSystem
|
||||
gradle.ext.isMacOsX = OperatingSystem.current().isMacOsX()
|
||||
|
||||
rootProject.name = 'java-spiffe'
|
||||
include 'java-spiffe-core'
|
||||
include 'java-spiffe-provider'
|
||||
|
|
|
|||
Loading…
Reference in New Issue