Skip to content

Commit 817a1ec

Browse files
author
Nathan Merrill
committed
Added sources to build.gradle
1 parent 35d23cd commit 817a1ec

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed

build.gradle

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,14 @@ dependencies {
3232
compile files("${System.properties['java.home']}/../lib/tools.jar")
3333

3434
}
35-
//
36-
//task copyTestResources(type: Copy) {
37-
// from "${projectDir}/src/test/resources"
38-
// into "${buildDir}/classes/test"
39-
//}
40-
//processTestResources.dependsOn copyTestResources
41-
//
42-
//test {
43-
// useTestNG()
44-
//}
45-
//
46-
//
47-
//task wrapper(type: Wrapper) {
48-
// gradleVersion = '3.3'
49-
//}
50-
//
51-
//
52-
//sourceSets {
53-
// main {
54-
// java {
55-
// srcDir 'src'
56-
// }
57-
// }
58-
// test {
59-
// java {
60-
// srcDir 'test'
61-
// }
62-
// }
63-
//}
35+
36+
task sourcesJar(type: Jar, dependsOn: classes) {
37+
classifier = 'sources'
38+
from sourceSets.main.allSource
39+
}
40+
41+
42+
artifacts {
43+
archives sourcesJar
44+
archives javadocJar
45+
}

0 commit comments

Comments
 (0)