diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 090f805..5522d34 100644 --- a/build.gradle +++ b/build.gradle @@ -42,10 +42,26 @@ project(":test") { project(":core") { apply plugin: "java" + apply plugin: "maven" dependencies { implementation "com.badlogicgames.gdx:gdx:$gdxVersion" } + + task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource + } + + task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir + } + + artifacts { + archives sourcesJar + archives javadocJar + } } project(":assets") { |