Compare commits

..

2 Commits

Author SHA1 Message Date
660681ea28 failed attmpt to fix tests 2023-08-11 22:05:56 +02:00
7257b4b059 add dumm gradle sub project 2023-08-11 22:05:28 +02:00
5 changed files with 37 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);
}
}

View File

@ -51,6 +51,8 @@ dependencies {
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion" testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation "org.hamcrest:hamcrest-library:$hamcrestVersion" 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. // The CordApp section.