-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
98 lines (87 loc) · 2.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.shibabandit'
version '0.3.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
ext {
gdxVersion = '1.9.6'
aiVersion = '1.8.1'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
compile 'org.locationtech.jts:jts-core:1.15.1'
compile 'org.orbisgis:poly2tri-core:0.1.2'
testCompile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" // Should be for testing visually only
testCompile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" // Should be for testing visually only
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'gdx-navmesh'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'gdx-navmesh'
description = 'LibGDX navigation mesh using constrained Delaunay triangulation.'
url = 'https://github.com/ShibaBandit/gdx-navmesh'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'ShibaBandit'
}
}
scm {
connection = 'scm:git:git://github.com/ShibaBandit/gdx-navmesh'
developerConnection = 'scm:git:ssh://github.com:ShibaBandit/gdx-navmesh'
url = 'https://github.com/ShibaBandit/gdx-navmesh'
}
}
}
}
repositories {
maven {
// change URLs to point to your repos, e.g. http://my.org/repo
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
url = isReleaseVersion ? releasesRepoUrl : snapshotsRepoUrl
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html4', true)
}
}