add dumm gradle sub project
This commit is contained in:
parent
164bc0e70f
commit
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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user