1.18
This commit is contained in:
parent
ec7038c311
commit
b53a0d68d2
|
|
@ -9,7 +9,7 @@ plugins {
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
|
||||||
group 'io.izzel.taboolib'
|
group 'io.izzel.taboolib'
|
||||||
version '1.17'
|
version '1.18'
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
embed
|
embed
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,6 @@ class KotlinAnnotationVisitor extends AnnotationVisitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
String getKotlinVersionEscape() {
|
String getKotlinVersionEscape() {
|
||||||
return getKotlinVersion().replaceAll("[.-]", "_")
|
return getKotlinVersion().replaceAll("[._-]", "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class TabooLibPlugin implements Plugin<Project> {
|
||||||
project.tasks.jar.configure { Jar task ->
|
project.tasks.jar.configure { Jar task ->
|
||||||
task.from(taboo.collect { it.isDirectory() ? it : project.zipTree(it) })
|
task.from(taboo.collect { it.isDirectory() ? it : project.zipTree(it) })
|
||||||
}
|
}
|
||||||
def kv = project.plugins.findPlugin("org.jetbrains.kotlin.jvm").kotlinPluginVersion.replaceAll("[.-]", "_")
|
def kv = project.plugins.findPlugin("org.jetbrains.kotlin.jvm").kotlinPluginVersion.replaceAll("[._-]", "")
|
||||||
def jarTask = project.tasks.jar as Jar
|
def jarTask = project.tasks.jar as Jar
|
||||||
tabooTask.configure { RelocateJar task ->
|
tabooTask.configure { RelocateJar task ->
|
||||||
task.tabooExt = tabooExt
|
task.tabooExt = tabooExt
|
||||||
|
|
@ -31,8 +31,8 @@ class TabooLibPlugin implements Plugin<Project> {
|
||||||
task.relocations = tabooExt.relocation
|
task.relocations = tabooExt.relocation
|
||||||
task.classifier = tabooExt.classifier
|
task.classifier = tabooExt.classifier
|
||||||
task.relocations['taboolib'] = project.group.toString() + '.taboolib'
|
task.relocations['taboolib'] = project.group.toString() + '.taboolib'
|
||||||
if (!tabooExt.options.contains("skip-kotlin")) {
|
if (!tabooExt.options.contains("skip-kotlin") && !tabooExt.options.contains("skip-kotlin-relocate")) {
|
||||||
task.relocations['kotlin'] = 'taboolib.library.kotlin_' + kv
|
task.relocations['kotlin'] = 'kotlin' + kv
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue