File tree Expand file tree Collapse file tree 4 files changed +24
-10
lines changed
Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 11plugins {
2+ id ' java'
3+ id ' maven'
4+ id ' eclipse'
5+ id ' idea'
26 id ' jacoco'
37 id ' com.github.kt3k.coveralls' version ' 2.8.1'
48}
59
6- apply plugin : ' java'
7- apply plugin : ' maven'
8- apply plugin : ' eclipse'
9- apply plugin : ' idea'
10-
1110sourceCompatibility = JavaVersion . VERSION_1_7
1211targetCompatibility = JavaVersion . VERSION_1_7
1312
@@ -25,6 +24,13 @@ jacocoTestReport {
2524 }
2625}
2726
27+ configurations. all {
28+ resolutionStrategy {
29+ cacheDynamicVersionsFor 0 , ' seconds'
30+ cacheChangingModulesFor 0 , ' seconds'
31+ }
32+ }
33+
2834test {
2935 testLogging {
3036 events " failed"
@@ -53,6 +59,15 @@ dependencies {
5359 testCompile ' junit:junit:4.12'
5460}
5561
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+
5671task sourcesJar (type : Jar , dependsOn : classes) {
5772 classifier = ' sources'
5873 from sourceSets. main. allSource
Original file line number Diff line number Diff line change 1- # Fri Apr 07 15:30:56 GMT+03:00 2017
21distributionBase =GRADLE_USER_HOME
32distributionPath =wrapper/dists
43zipStoreBase =GRADLE_USER_HOME
54zipStorePath =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=""
3333# Use the maximum available, or set MAX_FD != -1 to use that value.
3434MAX_FD=" maximum"
3535
36- warn ( ) {
36+ warn () {
3737 echo " $* "
3838}
3939
40- die ( ) {
40+ die () {
4141 echo
4242 echo " $* "
4343 echo
@@ -155,7 +155,7 @@ if $cygwin ; then
155155fi
156156
157157# Escape application args
158- save ( ) {
158+ save () {
159159 for i do printf %s\\ n " $i " | sed " s/'/'\\\\ ''/g;1s/^/'/;\$ s/\$ /' \\\\ /" ; done
160160 echo " "
161161}
You can’t perform that action at this time.
0 commit comments