-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (81 loc) · 3.18 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
plugins {
id 'java' // java support
id 'maven-publish' // publish to a maven repo (local or mvn central, has to be defined)
id "com.github.johnrengelman.shadow" version "8.1.1"
id 'com.diffplug.spotless' version '6.25.0'// code format
id "de.undercouch.download" version "5.6.0" // downloads plugin
}
ext {
//version (changing these should be considered thoroughly!)
javaVersion = JavaVersion.VERSION_17
scalaVersion = '2.13'
scalaBinaryVersion = '2.13.12'
pekkoVersion = "1.1.1"
tscfgVersion = '1.1.3'
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator // location of script plugins
}
group = 'com.github.ie3-institute'
description = 'simosaik'
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
apply from: scriptsLocation + 'spotless.gradle'
apply from: scriptsLocation + 'tscfg.gradle' // config tasks
configurations {
scalaCompilerPlugin
}
repositories {
mavenCentral() // searches in Sonatype's central repository
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } // sonatype snapshot repo
maven { url 'https://packages.confluent.io/maven' } // confluent repo (kafka)
}
dependencies {
implementation 'com.opencsv:opencsv:5.5.2'
implementation 'tech.units:indriya:2.2' // quantities
// ie³ internal repository
implementation('com.github.ie3-institute:PowerSystemUtils:2.2.1') {
exclude group: 'org.apache.logging.log4j'
exclude group: 'org.slf4j'
/* Exclude our own nested dependencies */
exclude group: 'com.github.ie3-institute'
}
implementation('com.github.ie3-institute:PowerSystemDataModel:6.0.0') {
exclude group: 'org.apache.logging.log4j'
exclude group: 'org.slf4j'
/* Exclude our own nested dependencies */
exclude group: 'com.github.ie3-institute'
}
implementation('com.github.ie3-institute:simonaAPI:0.8.0') {
exclude group: 'org.apache.logging.log4j'
exclude group: 'org.slf4j'
/* Exclude our own nested dependencies */
exclude group: 'edu.ie3'
}
// opsim dependencies
shadow('javax.xml.bind:jaxb-api:2.3.1')
shadow('org.glassfish.jaxb:jaxb-runtime:2.3.1')
implementation files('libs/iee-opsim-datamodel-3.3.8.jar')
implementation files('libs/iee-opsim-client-2.2.23-SNAPSHOT-jar-with-dependencies.jar')
/* logging */
implementation "com.typesafe.scala-logging:scala-logging_${scalaVersion}:3.9.5" // pekko scala logging
implementation "ch.qos.logback:logback-classic:1.4.14"
/* --- Scala libs --- */
/* CORE Scala */
implementation "org.scala-lang:scala-library:${scalaBinaryVersion}"
/* CORE Pekko */
implementation "org.apache.pekko:pekko-actor_${scalaVersion}:${pekkoVersion}"
implementation "org.apache.pekko:pekko-actor-typed_${scalaVersion}:${pekkoVersion}"
implementation "org.apache.pekko:pekko-slf4j_${scalaVersion}:${pekkoVersion}"
//implementation "org.apache.pekko:pekko-connectors-csv_${scalaVersion}:${pekkoVersion}"
}
shadowJar {
mergeServiceFiles()
excludes.remove("module-info.class")
transform(AppendingTransformer) {
resource = 'reference.conf'
}
zip64 = true
archiveBaseName.set('simopsim')
}