-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (52 loc) · 1.74 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
plugins {
id 'java'
id 'idea'
id 'application'
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
group 'org.funnydevelopers'
archivesBaseName = 'mvzje'
version '0.1.0-SNAPSHOT'
repositories {
mavenCentral()
// temporary maven repository
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation platform('org.lwjgl:lwjgl-bom:3.3.0')
implementation 'io.github.over-run:glutils:2.0.0-SNAPSHOT'
implementation 'org.lwjgl:lwjgl-openal:'
compileOnly 'org.jetbrains:annotations:22.0.0'
runtimeOnly 'org.lwjgl:lwjgl::natives-windows'
runtimeOnly 'org.lwjgl:lwjgl-glfw::natives-windows'
runtimeOnly 'org.lwjgl:lwjgl-opengl::natives-windows'
runtimeOnly 'org.lwjgl:lwjgl-stb::natives-windows'
}
tasks.withType(JavaCompile) {
options.encoding 'UTF-8'
}
jar {
from 'LICENSE'
manifest {
attributes 'Main-Class': 'org.funnydevelopers.wtrrb.Main',
'Specification-Title': archiveBaseName,
'Specification-Vendor': 'Funny Developers',
'Specification-Version': '0',
'Implementation-Title': 'Where the Radioactive Rays Bloom',
'Implementation-Vendor': 'Funny Developers',
'Implementation-Version': archiveVersion
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set 'sources'
from sourceSets.main.allSource, 'LICENSE'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set 'javadoc'
from javadoc, 'LICENSE'
}
idea.module.inheritOutputDirs = true
application{
mainClass = 'org.funnydevelopers.wtrrb.Main'
}