-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (86 loc) · 3.48 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
102
103
104
105
106
plugins {
id "com.jfrog.artifactory" version "5.1.11"
id 'groovy' // groovy support
id 'java' // java support
id 'scala' // scala support
id 'pmd' // code check, working on source code
id 'com.diffplug.spotless' version '7.0.1'// code format
id "de.undercouch.download" version "5.6.0" // downloads plugin
id 'jacoco' // java code coverage plugin
id "org.sonarqube" version "6.0.1.5171" // sonarqube
id 'org.scoverage' version '8.1' // Code coverage plugin for scala
id "com.github.maiflai.scalatest" version "0.32" // run scalatest without specific task
}
ext {
//version (changing these should be considered thoroughly!)
javaVersion = JavaVersion.VERSION_17
scalaVersion = '2.13'
scalaBinaryVersion = '2.13.15'
tscfgVersion = '1.2.1'
slf4jVersion = '2.0.16'
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
}
group = 'com.github.ie3-institute'
description = 'simbench2psdm'
version = '1.1-SNAPSHOT'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
apply from: scriptsLocation + 'pmd.gradle'
apply from: scriptsLocation + 'spotless.gradle'
apply from: scriptsLocation + 'checkJavaVersion.gradle'
apply from: scriptsLocation + 'tscfg.gradle' // config tasks
apply from: scriptsLocation + 'scoverage.gradle'
repositories {
mavenCentral()
maven { url 'https://www.jitpack.io' } // allows github repos as dependencies
// sonatype snapshots repo // todo remove
maven { url 'https://oss.sonatype.org/service/local/repositories/snapshots/content' }
}
dependencies {
/* PowerSystemDataModel */
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'
}
/* util functions */
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 'org.codehaus.groovy:groovy:3.0.23'
implementation 'tech.units:indriya:2.2.2'
implementation 'org.locationtech.jts:jts-core:1.20.0'
implementation 'commons-io:commons-io:2.18.0'
// logging
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
implementation "com.typesafe.scala-logging:scala-logging_${scalaVersion}:+" // akka scala logging
implementation "org.slf4j:log4j-over-slf4j:${slf4jVersion}" // slf4j -> log4j
// NEW scala libs //
// CORE Scala //
implementation "org.scala-lang:scala-library:$scalaBinaryVersion"
implementation 'org.scala-lang.modules:scala-parallel-collections_2.13:1.2.0'
// TEST Scala //
testImplementation "org.scalatest:scalatest_${scalaVersion}:3.2.19"
testImplementation 'com.vladsch.flexmark:flexmark-all:0.64.8'
testImplementation "org.pegdown:pegdown:1.6.0" // HTML report for scalatest
implementation 'org.mockito:mockito-core:5.15.2' // mocking framework
// config //
implementation 'com.typesafe:config:+'
implementation "com.github.carueda:tscfg_2.13:${tscfgVersion}"
// cmd args parser //
implementation "com.github.scopt:scopt_${scalaVersion}:+"
/* Handling compressed archives */
implementation "org.apache.commons:commons-compress:+"
}
wrapper {
gradleVersion = '7.6'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}