File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' java'
22apply plugin : ' maven'
3+ apply plugin : ' maven-publish'
34
45
56sourceCompatibility = 1.7
@@ -14,8 +15,8 @@ apply plugin: 'groovy'
1415
1516
1617dependencies {
17- testCompile group : ' junit' , name : ' junit' , version : ' 4.11'
1818 compile ' org.antlr:antlr4-runtime:4.5'
19+ testCompile group : ' junit' , name : ' junit' , version : ' 4.11'
1920 testCompile ' org.spockframework:spock-core:1.0-groovy-2.4'
2021 testCompile ' org.codehaus.groovy:groovy-all:2.4.4'
2122 testCompile ' cglib:cglib-nodep:3.1'
@@ -28,6 +29,20 @@ task sourcesJar(type: Jar) {
2829 from sourceSets. main. allSource
2930}
3031
32+ publishing {
33+ publications {
34+ grapqhl(MavenPublication ) {
35+ version version
36+ from components. java
37+ artifact sourcesJar
38+ }
39+ }
40+ }
41+
42+ artifacts {
43+ archives sourcesJar
44+ }
45+
3146task wrapper (type : Wrapper ) {
3247 gradleVersion = ' 2.5'
3348 distributionUrl = " http://services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip"
You can’t perform that action at this time.
0 commit comments