Compare commits
2 Commits
164bc0e70f
...
660681ea28
Author | SHA1 | Date | |
---|---|---|---|
660681ea28 | |||
7257b4b059 |
@ -23,4 +23,5 @@ pluginManagement {
|
||||
rootProject.name = 'csde-cordapp-template-java'
|
||||
include ':workflows'
|
||||
include ':contracts'
|
||||
include ':subapp'
|
||||
|
||||
|
11
subapp/build.gradle
Normal file
11
subapp/build.gradle
Normal file
@ -0,0 +1,11 @@
|
||||
plugins {
|
||||
id 'application'
|
||||
}
|
||||
|
||||
apply plugin: 'application'
|
||||
mainClassName = 'employee.EmployeeApp'
|
||||
|
||||
println 'This is executed during configuration phase'
|
||||
task configured {
|
||||
println 'The project is configured'
|
||||
}
|
7
subapp/src/main/java/employee/Employee.java
Normal file
7
subapp/src/main/java/employee/Employee.java
Normal file
@ -0,0 +1,7 @@
|
||||
package employee;
|
||||
|
||||
public class Employee {
|
||||
String name;
|
||||
String emailAddress;
|
||||
int yearOfBirth;
|
||||
}
|
16
subapp/src/main/java/employee/EmployeeApp.java
Normal file
16
subapp/src/main/java/employee/EmployeeApp.java
Normal file
@ -0,0 +1,16 @@
|
||||
package employee;
|
||||
|
||||
public class EmployeeApp {
|
||||
|
||||
public static void main(String[] args){
|
||||
Employee employee = new Employee();
|
||||
|
||||
employee.name = "John";
|
||||
employee.emailAddress = "john@baeldung.com";
|
||||
employee.yearOfBirth = 1978;
|
||||
|
||||
System.out.println("Name: " + employee.name);
|
||||
System.out.println("Email Address: " + employee.emailAddress);
|
||||
System.out.println("Year Of Birth:" + employee.yearOfBirth);
|
||||
}
|
||||
}
|
@ -51,6 +51,8 @@ dependencies {
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
|
||||
testImplementation "org.hamcrest:hamcrest-library:$hamcrestVersion"
|
||||
|
||||
// testImplementation "net.corda:corda-simulator-api:5.0.0.0-Fox1.1"//:$simulatorVersion"
|
||||
// testRuntimeOnly "net.corda:corda-simulator-runtime:5.0.0.0-Fox1.1"//:$simulatorVersion"
|
||||
}
|
||||
|
||||
// The CordApp section.
|
||||
|
Loading…
Reference in New Issue
Block a user