代码拉取完成,页面将自动刷新
plugins {
id 'org.openjfx.javafxplugin' version '0.0.13' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
ext.java9Args = [
// For various behaviors across controls
"--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls",
// For ReadOnlyUnbackedObservableList across files
"--add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls",
// For EventHandlerManager in AutoCompletionBinding
"--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls",
// For MappingChange, NonIterableChange across files
"--add-exports=javafx.base/com.sun.javafx.collections=org.controlsfx.controls",
//For SpreadsheetView
"--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior.TableViewBehavior=org.controlsfx.controls",
//For SpreadsheetView
"--add-exports=javafx.base/com.sun.javafx.event.EventHandlerManager=org.controlsfx.controls"
]
ext.java9RuntimeArgs = [
// For accessing getChildren in ImplUtils
"--add-opens=javafx.graphics/javafx.scene=org.controlsfx.controls"
]
subprojects {
apply plugin: 'java'
apply plugin: 'org.openjfx.javafxplugin'
apply from : '../mavenPublish.gradle'
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
mavenCentral()
}
compileJava {
options.encoding = "UTF-8"
options.incremental = true
}
javadoc {
def javaVersion = JavaVersion.current().majorVersion
if (JavaVersion.current().java11Compatible) {
options.links("https://openjfx.io/javadoc/"+ javaVersion)
options.links("https://docs.oracle.com/en/java/javase/" + javaVersion + "/docs/api")
} else {
options.links("https://docs.oracle.com/javase/" + javaVersion + "/docs/api")
}
}
task sourceJar(type: Jar) {
from sourceSets.main.java
from sourceSets.main.resources
archiveClassifier.set('sources')
}
task javadocJar(type: Jar) {
dependsOn javadoc
from javadoc.destinationDir
archiveClassifier.set('javadoc')
}
artifacts {
archives sourceJar
archives javadocJar
}
// Do not publish Gradle modules
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
}
// nexus publish plugin needs this
version = controlsfx_version
nexusPublishing {
repositories {
sonatype {
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。