Build changes to switch to HC00

This commit is contained in:
Chris Barratt 2022-11-25 14:09:01 +00:00
parent bf75f8fa55
commit 787056f29a
4 changed files with 12 additions and 83 deletions

View File

@ -45,36 +45,6 @@ cordapp {
} }
} }
/*
// Declare the set of Kotlin compiler options we need to build a CorDapp.
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
allWarningsAsErrors = false
// Specify the version of Kotlin that we are that we will be developing.
languageVersion = '1.7'
// Specify the Kotlin libraries that code is compatible with
apiVersion = '1.7'
// Note that we Need to use a version of Kotlin that will be compatible with the Corda API.
// Currently that is developed in Kotlin 1.7 so picking the same version ensures compatibility with that.
// Specify the version of Java to target.
jvmTarget = javaVersion
// Needed for reflection to work correctly.
javaParameters = true
// -Xjvm-default determines how Kotlin supports default methods.
// JetBrains currently recommends developers use -Xjvm-default=all
// https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-default/
freeCompilerArgs += [
"-Xjvm-default=all"
]
}
}
*/
// Declare the set of Kotlin compiler options we need to build a CorDapp. // Declare the set of Kotlin compiler options we need to build a CorDapp.
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
@ -84,53 +54,11 @@ tasks.withType(JavaCompile) {
] ]
} }
repositories { repositories {
mavenLocal()
// All dependencies are held in Maven Central // All dependencies are held in Maven Central
mavenCentral() mavenCentral()
// R3 Internal repositories
// Repository the provides kotlin-stdlib-jdk8-osgi created by R3.
// Final location to be decided.
maven { maven {
url = "$artifactoryContextUrl/corda-dependencies" url = "$artifactoryContextUrl/"
}
// Repository provides Corda 5 binaries that implement Corda-API.
// These will be made publicly available.
// Final location to be decided.
// Repository subject to change
maven {
url = "$artifactoryContextUrl/corda-os-maven"
credentials {
username = findProperty('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = findProperty('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
// Provides the combined-worker Jars
// These will be made publicly available.
// Final location to be decided.
maven {
url = "$artifactoryContextUrl/corda-ent-maven-unstable-local"
credentials {
username = findProperty('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = findProperty('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
maven {
url = "$artifactoryContextUrl/corda-ent-maven"
credentials {
username = findProperty('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = findProperty('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
maven {
url = "$artifactoryContextUrl/engineering-tools-maven-unstable"
credentials {
username = findProperty('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = findProperty('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
} }
} }

View File

@ -1,3 +1,6 @@
jacksonVersion = 2.13.3 jacksonVersion = 2.13.3
unirestVersion=3.13.10 unirestVersion=3.13.10
cordaApiVersion=5.0.0.190-DevPreview-2 cordaApiVersion=5.0.0.505-Beta1.0-HC00
# R3 internal repository
artifactoryContextUrl=https://staging.download.corda.net/maven/20ede3c6-29c0-11ed-966d-b7c36748b9f6-Beta1.0-HC00

View File

@ -165,7 +165,7 @@ public class CsdeRpcInterface {
public void uploadCertificate(String certAlias, String certFName) { public void uploadCertificate(String certAlias, String certFName) {
Unirest.config().verifySsl(false); Unirest.config().verifySsl(false);
kong.unirest.HttpResponse<kong.unirest.JsonNode> uploadResponse = Unirest.put(baseURL + "/api/v1/certificates/codesigner/") kong.unirest.HttpResponse<kong.unirest.JsonNode> uploadResponse = Unirest.put(baseURL + "/api/v1/certificates/cluster/code-signer")
.field("alias", certAlias) .field("alias", certAlias)
.field("certificate", new File(certFName)) .field("certificate", new File(certFName))
.basicAuth(rpcUser, rpcPasswd) .basicAuth(rpcUser, rpcPasswd)

View File

@ -3,17 +3,17 @@ kotlin.code.style=official
# Specify the version of the Corda-API to use. # Specify the version of the Corda-API to use.
# This needs to match the version supported by the Corda Cluster the CorDapp will run on. # This needs to match the version supported by the Corda Cluster the CorDapp will run on.
# cordaApiVersion=5.0.0.190-DevPreview-2 # cordaApiVersion=5.0.0.190-DevPreview-2
cordaApiVersion=5.0.0.414-beta+ cordaApiVersion=5.0.0.505-Beta1.0-HC00
# Specify the version of the cordapp-cpb and cordapp-cpk plugins # Specify the version of the cordapp-cpb and cordapp-cpk plugins
cordaPluginsVersion=7.0.0-DevPreview-2 cordaPluginsVersion=7.0.0
# For the time being this just needs to be set to a dummy value. # For the time being this just needs to be set to a dummy value.
platformVersion = 999 platformVersion = 999
# Version of Kotlin to use. # Version of Kotlin to use.
# We recommend using a version close to that used by Corda-API. # We recommend using a version close to that used by Corda-API.
kotlinVersion = 1.7.10 kotlinVersion = 1.7.21
# Do not use default dependencies. # Do not use default dependencies.
kotlin.stdlib.default.dependency=false kotlin.stdlib.default.dependency=false
@ -25,9 +25,8 @@ mockitoVersion=4.6.1
hamcrestVersion=2.2 hamcrestVersion=2.2
# Settings For Development Utilities # Settings For Development Utilities
testUtilsVersion=5.0.0.0-DevPreview-2 combinedWorkerVersion=5.0.0.0-Beta1.0-HC00
#combinedWorkerVersion=5.0.0.0-DevPreview-2 simulatorVersion=5.0.0.0-Beta1.0-HC00
combinedWorkerVersion=5.0.0.0-beta+
cordaClusterURL=https://localhost:8888 cordaClusterURL=https://localhost:8888
cordaRpcUser=admin cordaRpcUser=admin
@ -36,5 +35,4 @@ devEnvWorkspace=workspace
dbContainerName=CSDEpostgresql dbContainerName=CSDEpostgresql
# R3 internal repository # R3 internal repository
artifactoryContextUrl=https://software.r3.com/artifactory artifactoryContextUrl=https://staging.download.corda.net/maven/20ede3c6-29c0-11ed-966d-b7c36748b9f6-Beta1.0-HC00
simulatorVersion=5.0.0.0-SNAPSHOT