78 lines
2.1 KiB
Groovy
78 lines
2.1 KiB
Groovy
plugins {
|
|
id "com.jfrog.bintray" version "1.7.3"
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
group = 'org.jetbrains.kotlinx'
|
|
version = '0.7.1'
|
|
if (!project.hasProperty("deploy")) {
|
|
version = "$version-SNAPSHOT"
|
|
}
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
options.fork = false
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven { url 'http://repository.jetbrains.com/utils' }
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly project(':kotlin-gradle-plugin')
|
|
compileOnly project(':kotlin-gradle-plugin-api')
|
|
|
|
compileOnly project(':kotlin-stdlib')
|
|
compileOnly project(path: ':kotlin-compiler-embeddable', configuration: 'runtimeJar')
|
|
|
|
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
|
}
|
|
|
|
evaluationDependsOn(":kotlinx-serialization-compiler-plugin")
|
|
|
|
processResources {
|
|
expand(project.properties)
|
|
}
|
|
|
|
jar {
|
|
from(project(":kotlinx-serialization-compiler-plugin").sourceSets.main.output.classesDirs)
|
|
from(project(":kotlinx-serialization-compiler-plugin").sourceSets.main.output.resourcesDir)
|
|
manifestAttributes(manifest, project)
|
|
}
|
|
|
|
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDepsToShadedCompiler(project, jar, {}), {})
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
bintray {
|
|
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
|
|
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
|
|
configurations = ['archives']
|
|
if (!project.hasProperty("deploy")) {
|
|
dryRun = true
|
|
}
|
|
pkg {
|
|
repo = 'kotlinx'
|
|
name = 'kotlinx.serialization.plugin'
|
|
userOrg = 'kotlin'
|
|
licenses = ['Apache-2.0']
|
|
vcsUrl = 'https://github.com/JetBrains/kotlin/tree/rr/kotlinx.serialization/libraries'
|
|
websiteUrl = 'https://github.com/Kotlin/kotlinx.serialization'
|
|
issueTrackerUrl = 'https://github.com/Kotlin/kotlinx.serialization/issues'
|
|
|
|
githubRepo = 'JetBrains/kotlin'
|
|
version {
|
|
name = project.version
|
|
}
|
|
}
|
|
} |