-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (52 loc) · 1.23 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
plugins {
id 'maven-publish'
id 'java-library'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-list', '--count', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
version = '1.0.' + getGitHash()
group = "com.sunlight.instruments"
sourceCompatibility = 8
compileJava {
options.incremental = true
}
dependencies {
api "com.badlogicgames.gdx:gdx:$gdxVersion"
}
publishing {
publications {
libgdxPolygonGenerator(MavenPublication) {
pom {
name = "libgdx.polygon-generator"
description = "A tool for generating polygons and then creating colliders."
url = "https://github.com/aftern0on/libgdx.polygon-generator"
licenses {
license {
name = ""
url = ""
}
}
}
from components.java
}
}
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'