1
1
plugins {
2
- id " com.jfrog.artifactory" version " 4.9.7"
3
- id ' groovy' // groovy support
4
- id ' java' // java support
5
- id ' maven-publish'
6
- id ' signing'
7
- id ' pmd' // code check, working on source code
8
- id ' com.github.spotbugs' version ' 2.0.0' // code check, working on byte code
9
- id ' com.diffplug.gradle.spotless' version ' 3.27.1' // code format
10
- id ' com.simonharrer.modernizer' version ' 1.6.0-1' // detect deprecated APIs
11
- id ' com.github.onslip.gradle-one-jar' version ' 1.0.5' // pack a self contained jar
12
- id ' jacoco' // java code coverage plugin
13
- id " org.sonarqube" version " 2.7.1" // sonarqube
2
+ id " com.jfrog.artifactory" version " 4.9.7"
3
+ id ' groovy' // groovy support
4
+ id ' java' // java support
5
+ id ' maven-publish'
6
+ id ' signing'
7
+ id ' pmd' // code check, working on source code
8
+ id ' com.github.spotbugs' version ' 2.0.0' // code check, working on byte code
9
+ id ' com.diffplug.gradle.spotless' version ' 3.27.1' // code format
10
+ id ' com.simonharrer.modernizer' version ' 1.6.0-1' // detect deprecated APIs
11
+ id ' com.github.onslip.gradle-one-jar' version ' 1.0.5' // pack a self contained jar
12
+ id ' jacoco' // java code coverage plugin
13
+ id " org.sonarqube" version " 2.7.1" // sonarqube
14
14
}
15
15
16
16
ext {
17
- // version (changing these should be considered thoroughly!)
18
- hibernateVersion = ' 5.3.3.Final'
19
- unitsOfMeasurementVersion = ' 1.0.10'
20
- slf4jVersion = ' 1.7.26'
21
- javaVersion = JavaVersion . VERSION_1_8
17
+ // version (changing these should be considered thoroughly!)
18
+ hibernateVersion = ' 5.3.3.Final'
19
+ unitsOfMeasurementVersion = ' 1.0.10'
20
+ slf4jVersion = ' 1.7.26'
21
+ javaVersion = JavaVersion . VERSION_1_8
22
22
23
- scriptsLocation = ' gradle' + File . separator + ' scripts' + File . separator // location of script plugins
23
+ scriptsLocation = ' gradle' + File . separator + ' scripts' + File . separator // location of script plugins
24
24
}
25
25
26
26
group = ' com.github.ie3-institute'
27
- version = ' 1.3.1 '
27
+ version = ' 1.3.2-SNAPSHOT '
28
28
description = ' PowerSystemUtils'
29
29
sourceCompatibility = javaVersion
30
30
targetCompatibility = javaVersion
@@ -41,45 +41,47 @@ apply from: scriptsLocation + 'mavenCentralPublish.gradle'
41
41
42
42
43
43
repositories {
44
- mavenLocal()
45
- maven { url = ' https://repo.maven.apache.org/maven2' }
46
- maven { url = " https://www.jitpack.io" } // allows for github repos as dependencies
44
+ mavenLocal()
45
+ maven { url = ' https://repo.maven.apache.org/maven2' }
46
+ maven { url = " https://www.jitpack.io" } // allows for github repos as dependencies
47
47
}
48
48
49
49
dependencies {
50
- // logging
51
- compile " org.slf4j:slf4j-api:$slf4jVersion " // slf4j wrapper
52
- compile ' com.lmax:disruptor:+' // async logging
53
- compile ' org.apache.logging.log4j:log4j-api:+' // log4j
54
- compile ' org.apache.logging.log4j:log4j-core:+' // log4j
55
- compile ' org.apache.logging.log4j:log4j-slf4j-impl:+' // log4j -> slf4j
50
+ // logging
51
+ compile " org.slf4j:slf4j-api:$slf4jVersion " // slf4j wrapper
52
+ compile ' com.lmax:disruptor:+' // async logging
53
+ compile ' org.apache.logging.log4j:log4j-api:+' // log4j
54
+ compile ' org.apache.logging.log4j:log4j-core:+' // log4j
55
+ compile ' org.apache.logging.log4j:log4j-slf4j-impl:+' // log4j -> slf4j
56
56
57
- compile ' javax.measure:unit-api:+' // quantities
58
- compile " tec.uom:uom-se:$unitsOfMeasurementVersion " // quantities
59
- compile ' com.google.code.gson:gson:+' // java serialization, POJOs -> JSON
60
- compile ' org.apache.commons:commons-lang3:+' // for HashCodeBuilder
61
- compile ' com.github.johanneshiry:OSMonaut:+' // pbf parser
62
- compile " org.hibernate:hibernate-spatial:$hibernateVersion " // spatial operations in GeoUtils
63
- compile ' org.apache.commons:commons-math3:+' // mathematics and statistics components
64
- // JTS Topology Suite for GeoPositions, License: EPL 1.0 / EDL 1.0
65
- compile ' org.locationtech.jts:jts-core:1.16.1'
66
- compile ' org.locationtech.jts.io:jts-io-common:1.16.1'
57
+ compile ' javax.measure:unit-api:+' // quantities
58
+ compile " tec.uom:uom-se:$unitsOfMeasurementVersion " // quantities
59
+ compile ' com.google.code.gson:gson:+' // java serialization, POJOs -> JSON
60
+ compile ' org.apache.commons:commons-lang3:+' // for HashCodeBuilder
61
+ compile ' com.github.johanneshiry:OSMonaut:+' // pbf parser
62
+ compile " org.hibernate:hibernate-spatial:$hibernateVersion " // spatial operations in GeoUtils
63
+ compile ' org.apache.commons:commons-math3:+' // mathematics and statistics components
64
+ // JTS Topology Suite for GeoPositions, License: EPL 1.0 / EDL 1.0
65
+ compile ' org.locationtech.jts:jts-core:1.16.1'
66
+ compile ' org.locationtech.jts.io:jts-io-common:1.16.1'
67
67
68
- // testing
69
- testCompile ' org.spockframework:spock-core:1.3-groovy-+'
68
+ // testing
69
+ testCompile ' org.spockframework:spock-core:1.3-groovy-+'
70
70
71
- spotbugsPlugins ' com.h3xstream.findsecbugs:findsecbugs-plugin:+' // find bugs in java programs
71
+ spotbugsPlugins ' com.h3xstream.findsecbugs:findsecbugs-plugin:+' // find bugs in java programs
72
72
73
73
}
74
74
75
75
wrapper {
76
- gradleVersion = ' 6.0.1'
76
+ gradleVersion = ' 6.0.1'
77
77
}
78
78
79
79
tasks. withType(JavaCompile ) {
80
- options. encoding = ' UTF-8'
80
+ options. encoding = ' UTF-8'
81
81
}
82
82
83
83
task printVersion {
84
- println project. version
84
+ doLast {
85
+ println project. version
86
+ }
85
87
}
0 commit comments