Skip to content

Commit 3919420

Browse files
committed
working on build process
1 parent 71234fc commit 3919420

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build.gradle

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java'
22
apply plugin: 'maven'
3+
apply plugin: 'maven-publish'
34

45

56
sourceCompatibility = 1.7
@@ -14,8 +15,8 @@ apply plugin: 'groovy'
1415

1516

1617
dependencies {
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+
3146
task wrapper(type: Wrapper) {
3247
gradleVersion = '2.5'
3348
distributionUrl = "http://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"

0 commit comments

Comments
 (0)