Skip to content

Commit

Permalink
fix example build
Browse files Browse the repository at this point in the history
  • Loading branch information
celloman committed Oct 18, 2023
1 parent 4898407 commit cbdde7c
Showing 6 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions examples/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -22,11 +22,11 @@ dependencies {


// https://mvnrepository.com/artifact/io.provenance/proto-kotlin
implementation("io.provenance", "proto-kotlin", "1.8.0-rc10")
implementation("io.provenance", "proto-kotlin", "1.16.0")
implementation("io.provenance.scope:sdk:1.0-SNAPSHOT")
implementation("io.provenance.scope:util:1.0-SNAPSHOT")
implementation("io.grpc:grpc-protobuf:1.39.0")
implementation("io.grpc:grpc-stub:1.39.0")
implementation("io.grpc:grpc-protobuf:1.58.0")
implementation("io.grpc:grpc-stub:1.58.0")
implementation("ch.qos.logback:logback-classic:1.0.13")

implementation("com.fortanix", "sdkms-client", "3.23.1408")
@@ -37,13 +37,13 @@ dependencies {
implementation("com.github.komputing.kethereum:crypto_api:0.83.4")
implementation("com.github.komputing.kethereum:crypto_impl_bouncycastle:0.83.4")

runtimeOnly("io.grpc:grpc-netty-shaded:1.39.0")
runtimeOnly("io.grpc:grpc-netty-shaded:1.58.0")
}

tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "17"
}

application {
mainClassName = project.properties["mainClass"] as String? ?: "Please provide a main class to run."
mainClass = project.properties["mainClass"] as String? ?: "Please provide a main class to run."
}
3 changes: 3 additions & 0 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ import io.provenance.p8e.plugin.P8ePartyExtension

buildscript {
repositories {
maven {
url = uri("https://s01.oss.sonatype.org/content/groups/staging/")
}
mavenCentral()
maven { url = uri("https://javadoc.jitpack.io") }
}
Binary file modified examples/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
14 changes: 5 additions & 9 deletions examples/proto/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import com.google.protobuf.gradle.generateProtoTasks
import com.google.protobuf.gradle.id
import com.google.protobuf.gradle.ofSourceSet
import com.google.protobuf.gradle.plugins
import com.google.protobuf.gradle.protobuf
import com.google.protobuf.gradle.protoc

buildscript {
repositories {
@@ -16,7 +12,7 @@ plugins {
kotlin
java

id("com.google.protobuf") version "0.8.16"
id("com.google.protobuf") version "0.9.4"
}

repositories {
@@ -38,11 +34,11 @@ dependencies {
compileOnly("io.provenance.scope:contract-base:1.0-SNAPSHOT")

// Protobuf
implementation("com.google.protobuf", "protobuf-java", "3.12.0")
implementation("com.google.protobuf", "protobuf-java", "3.24.4")

// Grpc
implementation("io.grpc", "grpc-stub", "1.39.0")
implementation("io.grpc", "grpc-protobuf", "1.39.0") {
implementation("io.grpc", "grpc-stub", "1.58.0")
implementation("io.grpc", "grpc-protobuf", "1.58.0") {
exclude("com.google.protobuf")
}

@@ -53,6 +49,6 @@ dependencies {
protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = "com.google.protobuf:protoc:3.6.1"
artifact = "com.google.protobuf:protoc:3.24.4"
}
}
1 change: 1 addition & 0 deletions integration-test/sdkContracts/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ buildscript {
repositories {
mavenLocal()
jcenter()
maven { url = uri("https://s01.oss.sonatype.org/content/groups/staging/") }
mavenCentral()
maven { url = uri("https://javadoc.jitpack.io") }
}

0 comments on commit cbdde7c

Please sign in to comment.