-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (77 loc) · 2.95 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
plugins {
id 'java' // java support
id 'scala' // scala 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"
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'
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
/* Mosaik dependencies */
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.9.3'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation files('libs/mosaik-api-java-3.0.jar')
// 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:5.1.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.6.0') {
exclude group: 'org.apache.logging.log4j'
exclude group: 'org.slf4j'
/* Exclude our own nested dependencies */
exclude group: 'edu.ie3'
}
/* logging */
implementation platform('org.apache.logging.log4j:log4j-bom:2.24.2')
implementation 'org.apache.logging.log4j:log4j-api' // log4j
implementation 'org.apache.logging.log4j:log4j-core' // log4j
implementation 'org.apache.logging.log4j:log4j-slf4j-impl' // log4j -> slf4j
/* config */
implementation 'com.typesafe:config:1.4.3'
/* 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}"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
zip64 = true
archiveBaseName.set('simosaik')
archiveClassifier.set('')
}