-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (34 loc) · 1020 Bytes
/
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
plugins {
id 'java-library'
id 'maven-publish'
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
ext {
PUBLISH_GROUP_ID = 'com.isoterik'
PUBLISH_VERSION = '1.0.0'
PUBLISH_ARTIFACT_ID = 'racken'
}
apply from: "${rootDir}/scripts/publish-root.gradle"
apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"
group = PUBLISH_GROUP_ID
version = PUBLISH_VERSION
ext {
gdxVersion = '1.11.0'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
}
test {
useJUnitPlatform()
}
task assembleToLocalRepository(dependsOn: ['clean', 'build', 'publishToMavenLocal'])
build.mustRunAfter clean
publishToMavenLocal.mustRunAfter build