-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (71 loc) · 2.18 KB
/
build.gradle
File metadata and controls
88 lines (71 loc) · 2.18 KB
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
plugins {
id 'java'
id 'maven-publish'
id "io.freefair.lombok" version "8.0.1"
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
group 'net.mine_diver'
version '1.0'
repositories {
mavenCentral()
maven {
name = "Jitpack"
url 'https://jitpack.io/'
}
maven {
url 'https://maven.minecraftforge.net/'
}
}
sourceSets {
jmh {
java.srcDirs = ['src/jmh/java']
resources.srcDirs = ['src/jmh/resources']
compileClasspath += sourceSets.main.runtimeClasspath
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'org.ow2.asm:asm:9.3'
implementation 'org.ow2.asm:asm-analysis:9.3'
implementation 'org.ow2.asm:asm-commons:9.3'
implementation 'org.ow2.asm:asm-tree:9.3'
implementation 'org.ow2.asm:asm-util:9.3'
implementation "net.jodah:typetools:0.8.+"
implementation 'com.google.guava:guava:31.1-jre'
implementation 'it.unimi.dsi:fastutil:8.5.8'
implementation 'org.jetbrains:annotations:23.0.0'
jmhImplementation 'org.openjdk.jmh:jmh-core:1.35'
jmhImplementation 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
}
test {
useJUnitPlatform()
}
task jmh(type: JavaExec, dependsOn: jmhClasses) {
mainClass = 'org.openjdk.jmh.Main'
classpath = sourceSets.jmh.compileClasspath + sourceSets.jmh.runtimeClasspath
}
classes.finalizedBy(jmhClasses)
publishing {
repositories {
if (project.hasProperty("glass_maven_username")) {
maven {
url = "https://maven.glass-launcher.net/releases"
credentials {
username = "${project.properties["glass_maven_username"]}"
password = "${project.properties["glass_maven_password"]}"
}
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = group
artifactId = rootProject.name
version = version
from components.java
}
}
}