Skip to content

Commit a16c395

Browse files
committed
Build and source files
1 parent a31fd79 commit a16c395

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bin/
2+
build/
3+
*.jar
4+
*.class
5+
.classpath
6+
.project
7+
.settings/
8+
.gradle/

build.gradle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apply plugin: 'groovy'
2+
apply plugin: 'maven'
3+
4+
group='com.github.jitpack-io'
5+
version = '1.0'
6+
7+
repositories {
8+
mavenCentral()
9+
}
10+
11+
configurations {
12+
groovy2_0
13+
groovy2_3
14+
}
15+
16+
sourceSets {
17+
groovy2_0.groovy.srcDirs = main.groovy.srcDirs
18+
groovy2_3.groovy.srcDirs = main.groovy.srcDirs
19+
}
20+
21+
dependencies {
22+
compile 'org.codehaus.groovy:groovy-all:2.4.5'
23+
24+
groovy2_0Compile 'org.codehaus.groovy:groovy-all:2.0.5'
25+
groovy2_3Compile 'org.codehaus.groovy:groovy-all:2.3.0'
26+
}
27+
28+
sourceSets.all { set ->
29+
def jarTask = task("${set.name}Jar", type: Jar) {
30+
classifier = set.name
31+
from set.output
32+
}
33+
34+
artifacts {
35+
archives jarTask
36+
}
37+
}

src/main/groovy/Hello.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
println "Hello world"

0 commit comments

Comments
 (0)