File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
+ id ' java'
3
+ id ' maven'
4
+ id ' eclipse'
5
+ id ' idea'
2
6
id ' jacoco'
3
7
id ' com.github.kt3k.coveralls' version ' 2.8.1'
4
8
}
5
9
6
- apply plugin : ' java'
7
- apply plugin : ' maven'
8
- apply plugin : ' eclipse'
9
- apply plugin : ' idea'
10
-
11
10
sourceCompatibility = JavaVersion . VERSION_1_7
12
11
targetCompatibility = JavaVersion . VERSION_1_7
13
12
@@ -22,7 +21,10 @@ jacocoTestReport {
22
21
}
23
22
24
23
configurations. all {
25
- resolutionStrategy. cacheChangingModulesFor 0 , ' seconds'
24
+ resolutionStrategy {
25
+ cacheDynamicVersionsFor 0 , ' seconds'
26
+ cacheChangingModulesFor 0 , ' seconds'
27
+ }
26
28
}
27
29
28
30
repositories {
@@ -57,6 +59,15 @@ dependencies {
57
59
compile ' org.slf4j:slf4j-simple:1.7.21'
58
60
}
59
61
62
+ jar {
63
+ manifest. attributes (
64
+ ' Specification-Title' : project. name,
65
+ ' Specification-Version' : version,
66
+ ' Implementation-Title' : project. name,
67
+ ' Implementation-Version' : " $version (${ new Date().format('yyyy-MM-dd')} )" ,
68
+ )
69
+ }
70
+
60
71
task sourcesJar (type : Jar , dependsOn : classes) {
61
72
classifier = ' sources'
62
73
from sourceSets. main. allSource
Original file line number Diff line number Diff line change 1
- # Mon May 22 09:58:03 GMT+03:00 2017
2
1
distributionBase =GRADLE_USER_HOME
3
2
distributionPath =wrapper/dists
4
3
zipStoreBase =GRADLE_USER_HOME
5
4
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-3.4 -bin.zip
5
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.2 -bin.zip
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
33
33
# Use the maximum available, or set MAX_FD != -1 to use that value.
34
34
MAX_FD=" maximum"
35
35
36
- warn ( ) {
36
+ warn () {
37
37
echo " $* "
38
38
}
39
39
40
- die ( ) {
40
+ die () {
41
41
echo
42
42
echo " $* "
43
43
echo
@@ -155,7 +155,7 @@ if $cygwin ; then
155
155
fi
156
156
157
157
# Escape application args
158
- save ( ) {
158
+ save () {
159
159
for i do printf %s\\ n " $i " | sed " s/'/'\\\\ ''/g;1s/^/'/;\$ s/\$ /' \\\\ /" ; done
160
160
echo " "
161
161
}
You can’t perform that action at this time.
0 commit comments