Update java template example for HC00

This commit is contained in:
Chris Barratt 2022-11-25 15:50:16 +00:00
parent 787056f29a
commit b5517f632b
4 changed files with 8 additions and 36 deletions

View File

@ -6,6 +6,9 @@ plugins {
repositories {
mavenCentral()
maven {
url = "$artifactoryContextUrl/"
}
}
dependencies {

View File

@ -1,40 +1,9 @@
pluginManagement {
// Declare the repositories where plugins are stored.
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral {
content {
includeGroupByRegex 'net\\.corda(\\..*)?'
}
}
// R3 internal repositories
maven {
url "${artifactoryContextUrl}/corda-dev"
content {
includeGroupByRegex 'net\\.corda\\.plugins(\\..*)?'
}
}
maven {
url = "$artifactoryContextUrl/corda-os-maven-unstable"
credentials {
username = settings.ext.find('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = settings.ext.find('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
maven {
url = "$artifactoryContextUrl/corda-os-maven-unstable-local"
credentials {
username = settings.ext.find('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = settings.ext.find('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
}
maven {
url = "$artifactoryContextUrl/corda-dev"
credentials {
username = settings.ext.find('cordaArtifactoryUsername') ?: System.getenv('CORDA_ARTIFACTORY_USERNAME')
password = settings.ext.find('cordaArtifactoryPassword') ?: System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}
url = "$artifactoryContextUrl/"
}
}

View File

@ -26,17 +26,17 @@ public class MyFirstFlow implements RPCStartableFlow {
// JsonMarshallingService provides a Service for manipulating json
@CordaInject
JsonMarshallingService jsonMarshallingService;
public JsonMarshallingService jsonMarshallingService;
// FlowMessaging provides a service for establishing flow sessions between Virtual Nodes and
// sending and receiving payloads between them
@CordaInject
FlowMessaging flowMessaging;
public FlowMessaging flowMessaging;
// MemberLookup provides a service for looking up information about members of the Virtual Network which
// this CorDapp is operating in.
@CordaInject
MemberLookup memberLookup;
public MemberLookup memberLookup;
public MyFirstFlow() {}

View File

@ -23,7 +23,7 @@ public class MyFirstFlowResponder implements ResponderFlow {
// MemberLookup provides a service for looking up information about members of the Virtual Network which
// this CorDapp is operating in.
@CordaInject
MemberLookup memberLookup;
public MemberLookup memberLookup;
public MyFirstFlowResponder() {}