-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (76 loc) · 2.26 KB
/
Copy pathbuild.gradle
File metadata and controls
92 lines (76 loc) · 2.26 KB
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
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath "com.kotcrab.vis:vis-usl:0.2.1"
classpath "com.badlogicgames.gdx:gdx-tools:1.9.2"
}
}
plugins {
id("com.github.ben-manes.versions") version "0.52.0"
id("com.vanniktech.maven.publish.base") version "0.33.0"
}
subprojects {
apply plugin: "java"
apply plugin: "idea"
apply plugin: "signing"
apply plugin: "com.vanniktech.maven.publish.base"
group = 'com.kotcrab.vis'
version = projectVersion
ext {
appName = 'vis'
gdxVersion = '1.14.1'
jnaVersion = '4.1.0'
jnaPlatformVersion = '3.5.2'
junitVersion = '4.13.2'
imgscalrVersion = '4.2'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
repositories {
mavenCentral()
}
mavenPublishing {
publishToMavenCentral(true)
if (isReleaseVersion) {
signAllPublications()
}
coordinates("com.kotcrab.vis", projectName, projectVersion)
configure(new JavaLibrary(new JavadocJar.Javadoc(), true))
pom {
name = projectName
description = projectDesc
url = 'https://github.com/kotcrab/vis-ui/'
scm {
connection = 'scm:git:git@github.com:kotcrab/vis-ui.git'
developerConnection = 'scm:git:git@github.com:kotcrab/vis-ui.git'
url = 'git@github.com:kotcrab/vis-ui.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'kotcrab'
name = 'Kotcrab'
url = 'https://kotcrab.com'
}
}
}
}
task publishSnapshot {
if (!isReleaseVersion) {
finalizedBy(tasks["publishToMavenCentral"])
}
}
javadoc {
options.encoding = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
}
}