2023-06-23 23:58:51 +08:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
2023-06-24 04:58:28 +08:00
|
|
|
sourceCompatibility = versions.sourceCompat
|
2024-10-21 19:08:57 +08:00
|
|
|
targetCompatibility = versions.targetCompat
|
2023-06-23 23:58:51 +08:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: 'javadoc') {
|
|
|
|
from javadoc.destinationDir
|
2024-07-16 00:12:08 +08:00
|
|
|
archiveClassifier = 'javadoc'
|
2023-06-23 23:58:51 +08:00
|
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: 'classes') {
|
|
|
|
from sourceSets.main.allSource
|
2024-07-16 00:12:08 +08:00
|
|
|
archiveClassifier = 'sources'
|
2023-06-23 23:58:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
|
|
|
|