@@ -4,13 +4,13 @@ plugins {
44 application
55
66 jacoco
7- id(" net.razvan.jacoco-to-cobertura" ) version " 1.2.0"
87
98 id(" com.google.protobuf" ) version " 0.9.4"
9+ id(" org.pkl-lang" ) version " 0.26.2"
1010}
1111
1212group = " ac.at.uibk.dps.cirrina"
13- version = " 1.0-SNAPSHOT "
13+ version = " 1.0.0 "
1414
1515application {
1616 mainClass = " at.ac.uibk.dps.cirrina.main.Main"
@@ -26,6 +26,22 @@ jacoco {
2626 toolVersion = " 0.8.11"
2727}
2828
29+ pkl {
30+ javaCodeGenerators {
31+ register(" pklGenJava" ) {
32+ allowedModules.add(" https:" )
33+ sourceModules.addAll(
34+ " https://raw.githubusercontent.com/UIBK-DPS-DC/Cirrina-Specifications/main/pkl/CollaborativeStateMachineDescription.pkl" ,
35+ " https://raw.githubusercontent.com/UIBK-DPS-DC/Cirrina-Specifications/main/pkl/HttpServiceImplementationDescription.pkl" ,
36+ " https://raw.githubusercontent.com/UIBK-DPS-DC/Cirrina-Specifications/main/pkl/JobDescription.pkl" ,
37+ " https://raw.githubusercontent.com/UIBK-DPS-DC/Cirrina-Specifications/main/pkl/ServiceImplementationDescription.pkl"
38+ )
39+ generateGetters.set(true )
40+ generateJavadoc.set(true )
41+ }
42+ }
43+ }
44+
2945protobuf {
3046 generateProtoTasks {
3147 all().forEach { task ->
@@ -38,6 +54,9 @@ protobuf {
3854}
3955
4056dependencies {
57+ implementation(" org.pkl-lang:pkl-config-java:0.26.2" )
58+ implementation(" org.pkl-lang:pkl-codegen-java:0.26.2" )
59+
4160 implementation(" com.beust:jcommander:1.82" )
4261
4362 implementation(" com.fasterxml.jackson.core:jackson-databind:2.15.1" )
@@ -66,7 +85,7 @@ dependencies {
6685
6786 implementation(" org.apache.curator:curator-framework:5.6.0" )
6887 implementation(" org.apache.curator:curator-recipes:5.6.0" )
69-
88+
7089 implementation(" org.apache.httpcomponents.client5:httpclient5:5.3.1" )
7190
7291 implementation(" org.apache.logging.log4j:log4j-core:2.23.1" )
@@ -77,7 +96,6 @@ dependencies {
7796 implementation(" org.hibernate:hibernate-validator-cdi:8.0.1.Final" )
7897
7998 implementation(" org.jgrapht:jgrapht-core:1.5.2" )
80- implementation(" org.jgrapht:jgrapht-io:1.5.2" )
8199
82100 testImplementation(" org.mockito:mockito-core:5.11.0" )
83101
@@ -87,6 +105,7 @@ dependencies {
87105
88106repositories {
89107 mavenCentral()
108+ gradlePluginPortal()
90109 maven(url = " https://repository.cloudera.com/artifactory/cloudera-repos/" )
91110}
92111
@@ -101,12 +120,11 @@ tasks.jacocoTestReport {
101120 html.required = false
102121 csv.required = false
103122 }
104- finalizedBy(tasks.jacocoToCobertura)
105123}
106124
107125tasks.withType<Jar > {
108126 manifest {
109127 attributes[" Main-Class" ] = " at.ac.uibk.dps.cirrina.main.Main"
110128 attributes[" Implementation-Version" ] = version
111129 }
112- }
130+ }
0 commit comments