-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch 'platf' modules to Kotlin JVM plugin (#1273)
- Loading branch information
1 parent
471d5a6
commit 27fd1bb
Showing
53 changed files
with
104 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,32 +5,19 @@ import org.gradle.jvm.tasks.Jar | |
* Use of this source code is governed by the MIT license that can be found in the LICENSE file. | ||
*/ | ||
|
||
plugins { | ||
kotlin("jvm") | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
val artifactBaseName = "platf-jfx-swing-jvm" | ||
val artifactGroupId = project.group as String | ||
val artifactVersion = project.version as String | ||
val jfxVersion = project.extra["jfx_version"] as String | ||
val jfxPlatform = project.extra["jfxPlatformResolved"] as String | ||
val mavenLocalPath = rootProject.project.extra["localMavenRepository"] | ||
|
||
dependencies { | ||
compileOnly(project("::platf-awt")) | ||
compileOnly(project(":commons")) | ||
compileOnly(project(":datamodel")) | ||
compileOnly(project(":canvas")) | ||
compileOnly(project(":plot-stem")) | ||
|
||
compileOnly("org.openjfx:javafx-base:$jfxVersion:$jfxPlatform") | ||
compileOnly("org.openjfx:javafx-graphics:$jfxVersion:$jfxPlatform") | ||
compileOnly("org.openjfx:javafx-swing:$jfxVersion:$jfxPlatform") | ||
|
||
compileOnly(project(":platf-awt")) | ||
|
||
testImplementation(project(":demo-and-test-shared")) | ||
testImplementation(project(":platf-awt")) | ||
testImplementation(kotlin("test")) | ||
|
@@ -39,67 +26,3 @@ dependencies { | |
testImplementation("org.openjfx:javafx-graphics:$jfxVersion:$jfxPlatform") | ||
testImplementation("org.openjfx:javafx-swing:$jfxVersion:$jfxPlatform") | ||
} | ||
|
||
tasks { | ||
jar { | ||
from(rootProject.file("LICENSE")) { | ||
into("META-INF") | ||
} | ||
} | ||
val platfJfxSwingJvmSourcesJar by creating(Jar::class) { | ||
archiveClassifier.set("sources") | ||
from(sourceSets["main"].allSource) | ||
} | ||
val platfJfxSwingJvmJavadocJar by creating(Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
from("$rootDir/README.md") | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
register("platfJfxSwingJvm", MavenPublication::class) { | ||
|
||
groupId = artifactGroupId | ||
artifactId = artifactBaseName | ||
version = artifactVersion | ||
|
||
artifact(tasks["jar"]) | ||
artifact(tasks["platfJfxSwingJvmSourcesJar"]) | ||
artifact(tasks["platfJfxSwingJvmJavadocJar"]) | ||
|
||
pom { | ||
name = "Lets-Plot core artifact" | ||
description = "A part of the Lets-Plot library." | ||
|
||
url = "https://github.com/JetBrains/lets-plot" | ||
licenses { | ||
license { | ||
name = "MIT" | ||
url = "https://raw.githubusercontent.com/JetBrains/lets-plot/master/LICENSE" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "jetbrains" | ||
name = "JetBrains" | ||
email = "[email protected]" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/JetBrains/lets-plot" | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
mavenLocal { | ||
url = uri("$mavenLocalPath") | ||
} | ||
} | ||
} | ||
signing { | ||
if (!project.version.toString().contains("SNAPSHOT")) { | ||
sign(publishing.publications["platfJfxSwingJvm"]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters