-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.45 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0'
}
}
group 'de.ellpeck.rockbottom'
version '0.5.0'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
apply plugin: 'maven-publish'
mainClassName = "de.ellpeck.rockbottom.Main"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
group = "de.ellpeck.rockbottom"
archivesBaseName = "RockBottom"
if (System.getenv("BUILD_NUMBER") != null) {
version = "${version}-${System.getenv("BUILD_NUMBER")}"
}
repositories {
mavenCentral()
maven {
url "https://clojars.org/repo/"
}
}
dependencies {
implementation project(":API")
//JOPT Simple for launch arg parsing
implementation group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '6.0-alpha-3'
}
jar {
manifest {
attributes("Main-Class": "de.ellpeck.rockbottom.Main")
}
}
installDist {
destinationDir = new File('build/temp/libs')
exclude 'RockBottom-*'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
}
}
repositories {
maven { url "file://" + System.getenv("local_maven") }
}
}