diff options
| author | Kamil Doległo <kamilok1965@interia.pl> | 2020-01-31 00:37:29 +0100 |
|---|---|---|
| committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-31 15:27:26 +0100 |
| commit | e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944 (patch) | |
| tree | 7e3eb4f67d36d3b7b6db6aec08c58de2e1b678d3 /testApi | |
| parent | 0073c4c547dafaae5d465d4c410a52fd7fdc818d (diff) | |
| download | dokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.tar.gz dokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.tar.bz2 dokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.zip | |
Bump Gradle version, migrate to Kotlin DSL, refactor publishing
Diffstat (limited to 'testApi')
| -rw-r--r-- | testApi/build.gradle | 12 | ||||
| -rw-r--r-- | testApi/build.gradle.kts | 29 |
2 files changed, 29 insertions, 12 deletions
diff --git a/testApi/build.gradle b/testApi/build.gradle deleted file mode 100644 index 5425b7bc..00000000 --- a/testApi/build.gradle +++ /dev/null @@ -1,12 +0,0 @@ -buildscript { - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} -apply plugin: 'kotlin' - -dependencies { - implementation project(':core') - implementation group: 'junit', name: 'junit', version: '4.12' - implementation group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version -}
\ No newline at end of file diff --git a/testApi/build.gradle.kts b/testApi/build.gradle.kts new file mode 100644 index 00000000..db861b90 --- /dev/null +++ b/testApi/build.gradle.kts @@ -0,0 +1,29 @@ +import org.jetbrains.configureBintrayPublication + +plugins { + `maven-publish` + id("com.jfrog.bintray") +} + +dependencies { + implementation(project(":core")) + implementation("junit:junit:4.13") // TODO: remove dependency to junit + implementation(kotlin("stdlib")) +} + +val sourceJar by tasks.registering(Jar::class) { + archiveClassifier.set("sources") + from(sourceSets["main"].allSource) +} + +publishing { + publications { + register<MavenPublication>("dokkaTestAPI") { + artifactId = "dokka-test-api" + components["java"] + artifact(sourceJar.get()) + } + } +} + +configureBintrayPublication("dokkaTestAPI")
\ No newline at end of file |
