MaterialFX/materialfx/build.gradle
palexdev cef28778eb 🔖 Version 11.13.3
⬆️ Update Gradle plugins
⬆️ Update VirtualizedFX to 11.2.5
📝 Improve ROADMAP
📝 Update Text Fields wiki

 MFXTextField added a label to specify the unit of measure (optional, leave blank string to remove)

Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
2022-03-10 22:26:13 +01:00

105 lines
2.5 KiB
Groovy
Executable File

import org.apache.tools.ant.taskdefs.condition.Os
plugins {
id 'biz.aQute.bnd.builder' version '6.2.0'
id 'com.vanniktech.maven.publish' version '0.19.0'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
repositories {
mavenCentral()
flatDir {
dirs "${project(':demo').projectDir}/libs"
}
}
compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
}
dependencies {
testImplementation('junit:junit:4.13.2')
implementation 'com.vanniktech:gradle-maven-publish-plugin:0.19.0'
implementation 'io.github.palexdev:virtualizedfx:11.2.5'
}
javadoc {
excludes = ['**/*.html', 'META-INF/**']
options.use = true
options.splitIndex = true
options.encoding = 'UTF-8'
options.author = true
options.version = true
options.windowTitle = "$project.name $project.version API"
options.docTitle = "$project.name $project.version API"
options.links = ['https://docs.oracle.com/en/java/javase/11/docs/api',
'https://openjfx.io/javadoc/17']
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
task sourcesJarBuild(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
artifacts {
archives javadocJar
archives sourcesJarBuild
archives jar
}
jar {
manifest {
attributes(
'Bundle-Name': project.name,
'Bundle-Description': "Material controls for JavaFX",
'Bundle-SymbolicName': 'io.github.palexdev',
'Export-Package': 'io.github.palexdev.materialfx.*, io.github.palexdev.materialfx.demo.*'
)
}
}
shadowJar {
mergeServiceFiles()
dependencies {
include(dependency('io.github.palexdev:virtualizedfx:11.2.5'))
}
}
task copyJar(type: Copy) {
from jar
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
into System.getenv("APPDATA") + '/Scene Builder/Library'
} else if (Os.isFamily(Os.FAMILY_MAC)) {
into System.getProperty("user.home") + '/Library/Application Support' + '/Scene Builder/Library'
} else if (Os.isFamily(Os.FAMILY_UNIX)) {
into System.getProperty("user.home") + '/.scenebuilder/Library'
}
}
task removeBnd(type: Delete) {
delete fileTree(project.buildDir) {
include '**/*.bnd'
}
}
build {
dependsOn shadowJar, copyJar, removeBnd
}
allprojects {
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}