-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
83 lines (69 loc) · 2.43 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
group 'de.ellpeck.rockbottom'
version '0.6.0'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
project.ext.lwjglVersion = "3.2.3"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
group = "de.ellpeck.rockbottom"
archivesBaseName = "RockBottomApi"
if (System.getenv("BUILD_NUMBER") != null) {
version = "${version}-${System.getenv("BUILD_NUMBER")}"
}
repositories {
mavenCentral()
}
dependencies {
// LWJGL
api "org.lwjgl:lwjgl:$lwjglVersion"
api "org.lwjgl:lwjgl-glfw:$lwjglVersion"
api "org.lwjgl:lwjgl-openal:$lwjglVersion"
api "org.lwjgl:lwjgl-opengl:$lwjglVersion"
api "org.lwjgl:lwjgl-stb:$lwjglVersion"
api "org.joml:joml:1.9.8"
// LWJGL Natives
api "org.lwjgl:lwjgl:$lwjglVersion:natives-windows"
api "org.lwjgl:lwjgl-glfw:$lwjglVersion:natives-windows"
api "org.lwjgl:lwjgl-openal:$lwjglVersion:natives-windows"
api "org.lwjgl:lwjgl-opengl:$lwjglVersion:natives-windows"
api "org.lwjgl:lwjgl-stb:$lwjglVersion:natives-windows"
api "org.lwjgl:lwjgl:$lwjglVersion:natives-linux"
api "org.lwjgl:lwjgl-glfw:$lwjglVersion:natives-linux"
api "org.lwjgl:lwjgl-openal:$lwjglVersion:natives-linux"
api "org.lwjgl:lwjgl-opengl:$lwjglVersion:natives-linux"
api "org.lwjgl:lwjgl-stb:$lwjglVersion:natives-linux"
api "org.lwjgl:lwjgl:$lwjglVersion:natives-macos"
api "org.lwjgl:lwjgl-glfw:$lwjglVersion:natives-macos"
api "org.lwjgl:lwjgl-openal:$lwjglVersion:natives-macos"
api "org.lwjgl:lwjgl-opengl:$lwjglVersion:natives-macos"
api "org.lwjgl:lwjgl-stb:$lwjglVersion:natives-macos"
// Netty
api group: 'io.netty', name: 'netty-all', version: '4.1.59.Final'
// Google Commons
api group: 'com.google.guava', name: 'guava', version: '30.1-jre'
api group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
}
task sourcesJar(type: Jar) {
from sourceSets.main.java
classifier 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
classifier 'javadoc'
}
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven { url "file://" + System.getenv("local_maven") }
}
}