add dumm gradle sub project

This commit is contained in:
djmil 2023-08-11 22:05:28 +02:00
parent 164bc0e70f
commit 7257b4b059
4 changed files with 35 additions and 0 deletions

View File

@ -23,4 +23,5 @@ pluginManagement {
rootProject.name = 'csde-cordapp-template-java' rootProject.name = 'csde-cordapp-template-java'
include ':workflows' include ':workflows'
include ':contracts' include ':contracts'
include ':subapp'

11
subapp/build.gradle Normal file
View 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'
}

View File

@ -0,0 +1,7 @@
package employee;
public class Employee {
String name;
String emailAddress;
int yearOfBirth;
}

View 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);
}
}