-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
84 lines (69 loc) · 1.9 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21"
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.8.21'
id 'maven-publish'
}
allprojects {
apply plugin: 'java'
apply plugin: 'org.jetbrains.kotlin.jvm'
group 'com.github.only52607.luakt'
version '2.6.0'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'cglib:cglib:3.3.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
}
repositories {
maven { url 'https://www.jitpack.io' }
mavenCentral()
}
tasks.register('sourcesJar', Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
}
tasks.register('javadocJar', Jar) {
from javadoc
archiveClassifier.set('javadoc')
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
afterEvaluate {
publishing {
publications {
"$project.name"(MavenPublication) {
artifactId project.name
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
}
}
}
}
}
dependencies {
api project(":luakt-luaj")
api project(":luakt-core")
api project(":luakt-extension")
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions.freeCompilerArgs = ["-Xcontext-receivers"]
}