-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (83 loc) · 2.78 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
buildscript {
ext.kotlin_version = '1.1.1'
ext.junit_version = '1.0.0-M3'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("gradle.plugin.com.zoltu.gradle.plugin:git-versioning:2.0.28")
classpath("org.junit.platform:junit-platform-gradle-plugin:$junit_version")
classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7")
}
}
apply plugin: "com.zoltu.git-versioning"
apply plugin: "kotlin"
apply plugin: "maven"
apply plugin: "maven-publish"
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'com.jfrog.bintray'
group = "pro.gramcode"
version = version()
junitPlatform {
platformVersion = "$junit_version"
filters {
engines {
include 'spek'
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId group
artifactId project.name
version version
}
}
}
repositories {
mavenCentral()
maven { url "http://dl.bintray.com/markusamshove/maven" }
maven { url "http://dl.bintray.com/jetbrains/spek" }
}
ext.gdxVersion = "1.9.6"
ext.spekVersion = "1.1.0"
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
compile("com.badlogicgames.gdx:gdx-box2d:$gdxVersion")
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile("org.jetbrains.spek:spek-api:$spekVersion")
testCompile("com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop")
testCompile("org.amshove.kluent:kluent:1.15")
testCompile("com.google.truth:truth:0.28")
testCompile "org.mockito:mockito-core:2.7.11"
testCompile "com.nhaarman:mockito-kotlin:1.3.0"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testRuntime("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion")
}
bintray {
user = project.hasProperty("bintrayUser") ? project.property("bintrayUser") : System.getenv("BINTRAY_USER")
key = project.hasProperty("bintrayApiKey") ? project.property("bintrayApiKey") : System.getenv("BINTRAY_API_KEY")
configurations = ["archives"]
publish = true
pkg {
repo = "releases"
name = "gdx-box2d-kotlin"
licenses = ["Apache-2.0"]
vcsUrl = "https://github.com/Jkly/gdx-box2d-kotlin"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
distributionType = 'all'
}
def version() {
def versionInfo = ZoltuGitVersioning.versionInfo
return "${versionInfo.major}.${versionInfo.minor}.${versionInfo.commitCount}-${versionInfo.sha}"
}