-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
58 lines (46 loc) · 1.23 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
buildscript {
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/jetbrains/kotlin-native-dependencies'
}
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-native-gradle-plugin:+'
}
}
apply plugin: 'konan'
konan.targets = [ 'linux', 'macbook', 'mingw' ]
group 'org.godot'
version '1.0'
konanArtifacts {
interop('godotapi') {
}
library('godot') {
enableOptimizations true
libraries {
artifact 'godotapi'
}
//dependsOn ':godotapi:publish'
dependencies {
//artifactGodot 'org.godot:godotapi:1.0'
'org.godot:godotapi:1.0'
}
}
// library('KotlinTest') {
// srcFiles fileTree('src/main/kotlin')
// }
}
apply plugin: 'maven-publish'
String userDir = "${System.getenv('HOME')}" ?: "${System.getProperty('user.home')}"
//String homeDir = "./.m2-kotlin-native"
String localMavenRepo = "file://${new File(userDir as String)}/.m2-kotlin-native"
//def localMavenRepo = "file://${new File(homeDir)}/.m2-kotlin-native"
//def localMavenRepo = "file://./.m2-kotlin-native"
publishing {
repositories {
maven {
url = localMavenRepo
}
}
}