Update java template example for HC00
This commit is contained in:
parent
787056f29a
commit
b5517f632b
@ -6,6 +6,9 @@ plugins {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url = "$artifactoryContextUrl/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -1,40 +1,9 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
// Declare the repositories where plugins are stored.
|
// Declare the repositories where plugins are stored.
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenCentral {
|
|
||||||
content {
|
|
||||||
includeGroupByRegex 'net\\.corda(\\..*)?'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// R3 internal repositories
|
|
||||||
maven {
|
maven {
|
||||||
url "${artifactoryContextUrl}/corda-dev"
|
url = "$artifactoryContextUrl/"
|
||||||
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')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,17 +26,17 @@ public class MyFirstFlow implements RPCStartableFlow {
|
|||||||
|
|
||||||
// JsonMarshallingService provides a Service for manipulating json
|
// JsonMarshallingService provides a Service for manipulating json
|
||||||
@CordaInject
|
@CordaInject
|
||||||
JsonMarshallingService jsonMarshallingService;
|
public JsonMarshallingService jsonMarshallingService;
|
||||||
|
|
||||||
// FlowMessaging provides a service for establishing flow sessions between Virtual Nodes and
|
// FlowMessaging provides a service for establishing flow sessions between Virtual Nodes and
|
||||||
// sending and receiving payloads between them
|
// sending and receiving payloads between them
|
||||||
@CordaInject
|
@CordaInject
|
||||||
FlowMessaging flowMessaging;
|
public FlowMessaging flowMessaging;
|
||||||
|
|
||||||
// MemberLookup provides a service for looking up information about members of the Virtual Network which
|
// MemberLookup provides a service for looking up information about members of the Virtual Network which
|
||||||
// this CorDapp is operating in.
|
// this CorDapp is operating in.
|
||||||
@CordaInject
|
@CordaInject
|
||||||
MemberLookup memberLookup;
|
public MemberLookup memberLookup;
|
||||||
|
|
||||||
public MyFirstFlow() {}
|
public MyFirstFlow() {}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public class MyFirstFlowResponder implements ResponderFlow {
|
|||||||
// MemberLookup provides a service for looking up information about members of the Virtual Network which
|
// MemberLookup provides a service for looking up information about members of the Virtual Network which
|
||||||
// this CorDapp is operating in.
|
// this CorDapp is operating in.
|
||||||
@CordaInject
|
@CordaInject
|
||||||
MemberLookup memberLookup;
|
public MemberLookup memberLookup;
|
||||||
|
|
||||||
public MyFirstFlowResponder() {}
|
public MyFirstFlowResponder() {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user