diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-11-27 11:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 11:23:38 +0100 |
commit | fa4ea60d3692aa2435ebab3add1f776aef3445c9 (patch) | |
tree | cfeec482c7bbfa1d2594199d6058e72a6b2dea2a | |
parent | c644272e3be0c8e2a3b04595ec2249ed4e76e56e (diff) | |
parent | b55b2049e064f34b89fc11f7629336781259a445 (diff) | |
download | gdx-boardgame-fa4ea60d3692aa2435ebab3add1f776aef3445c9.zip gdx-boardgame-fa4ea60d3692aa2435ebab3add1f776aef3445c9.tar.gz |
Merge pull request #1 from SimonIT/jitpack-preperations
Jitpack and GWT preparations
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | assets/build.gradle | 6 | ||||
-rw-r--r-- | build.gradle | 17 | ||||
-rw-r--r-- | core/build.gradle | 1 | ||||
-rw-r--r-- | core/res/ch/asynk/gdx/boardgame.gwt.xml | 7 | ||||
-rw-r--r-- | settings.gradle | 1 | ||||
-rw-r--r-- | test/build.gradle | 1 |
7 files changed, 31 insertions, 3 deletions
@@ -1,4 +1,5 @@ # gdx-boardgame +[![](https://jitpack.io/v/jeremyz/gdx-boardgame.svg)](https://jitpack.io/#jeremyz/gdx-boardgame) is a [libgdx](https://libgdx.badlogicgames.com/) based framework to build 2D boardgames. diff --git a/assets/build.gradle b/assets/build.gradle index 4b37476..cf35be1 100644 --- a/assets/build.gradle +++ b/assets/build.gradle @@ -6,7 +6,7 @@ dependencies { texturePacker "com.badlogicgames.gdx:gdx-tools:$gdxVersion" } -defaultTasks 'build' +defaultTasks 'generateAssets' task packLoading(type: JavaExec) { main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' @@ -20,10 +20,10 @@ task packHexOverlays(type: JavaExec) { args = ['hex-overlays', 'data', 'hex-overlays'] } -task build() { +task generateAssets() { description "Builds the skin at various DPIs" } -build.dependsOn { +generateAssets.dependsOn { tasks.findAll { task -> task.name.startsWith('pack') } } diff --git a/build.gradle b/build.gradle index 090f805..e863ce1 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,7 @@ buildscript { allprojects { + group = 'ch.asynk.gdx' version = '1.0' ext { appName = "gdx-boardgame" @@ -42,10 +43,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") { diff --git a/core/build.gradle b/core/build.gradle index 899883b..3a82fad 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -4,3 +4,4 @@ sourceCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' sourceSets.main.java.srcDirs = [ "src/" ] +sourceSets.main.resources.srcDirs = [ "res/" ] diff --git a/core/res/ch/asynk/gdx/boardgame.gwt.xml b/core/res/ch/asynk/gdx/boardgame.gwt.xml new file mode 100644 index 0000000..15cb956 --- /dev/null +++ b/core/res/ch/asynk/gdx/boardgame.gwt.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" + "http://www.gwtproject.org/doctype/2.8.2/gwt-module.dtd"> +<module> + <source path=""/> + <inherits name="com.badlogic.gdx.backends.gdx_backends_gwt"/> +</module> diff --git a/settings.gradle b/settings.gradle index 3788307..e1b747f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,2 @@ include 'test', 'core', 'assets' +rootProject.name = 'gdx-boardgame' diff --git a/test/build.gradle b/test/build.gradle index 7bfe898..55ac893 100644 --- a/test/build.gradle +++ b/test/build.gradle @@ -40,3 +40,4 @@ task dist(type: Jar) { } dist.dependsOn classes +build.dependsOn(':assets:generateAssets') |