-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (69 loc) · 1.93 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
84
85
plugins {
id 'maven-publish'
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name
version = project.property("version")
group = project.maven_group
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
metadataSources {
artifact()
}
}
}
configurations {
jsmacrosExtensionInclude
}
dependencies {
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.slf4j:slf4j-api:2.0.0-alpha7'
implementation 'com.google.code.gson:gson:2.9.0'
testImplementation 'org.slf4j:slf4j-simple:2.0.0-alpha7'
implementation 'javassist:javassist:3.12.1.GA'
implementation 'fastutil:fastutil:5.0.9'
implementation "com.github.jsmacros.jsmacros:jsmacros-1.19:${project.jsmacros_version}"
implementation "org.jruby:jruby-complete:9.4.5.0"
jsmacrosExtensionInclude "org.jruby:jruby-complete:9.4.5.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation 'org.jetbrains:annotations:16.0.2'
}
processResources {
filesMatching("jsmacros.ext.jruby.json") {
expand "dependencies": configurations.jsmacrosExtensionInclude.files.collect { it.name }.join(" ")
}
}
compileJava {
options.encoding = "UTF-8"
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
options.release.set(17)
}
jar {
from "LICENSE"
from (configurations.jsmacrosExtensionInclude.files) {
include '*'
into "META-INF/jsmacrosdeps"
}
}
test {
useJUnitPlatform()
}
// configure the maven publication
publishing {
publications {
}
repositories {
}
}