Skip to content

Commit

Permalink
Update project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jan 15, 2019
1 parent c3879ee commit 606ddf4
Show file tree
Hide file tree
Showing 34 changed files with 200 additions and 386 deletions.
94 changes: 40 additions & 54 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* SPDX-License-Identifier: MIT
*
* Copyright (c) 2015-2018 Andres Almiray
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -20,53 +22,13 @@
* THE SOFTWARE.
*/

import java.text.SimpleDateFormat

buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
maven {
url "https://sandec.bintray.com/repo"
}
}

dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'org.kordamp.gradle:stats-gradle-plugin:0.2.2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'net.nemerosa:versioning:2.7.1'
classpath "com.sandec.jpro:jpro-plugin-gradle:2018.1.8"
}
}

apply plugin: 'net.nemerosa.versioning'

Date buildTimeAndDate = new Date()
ext {
buildBy = System.properties['user.name']
buildDate = new SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate)
buildTime = new SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate)
buildRevision = versioning.info.commit
buildJdk = "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})".toString()
buildCreatedBy = "Gradle ${gradle.gradleVersion}"
plugins {
id 'org.kordamp.gradle.kordamp-parentpom' version '1.2.1'
id 'org.kordamp.gradle.source-xref' version '0.12.0' apply false
}

allprojects {
apply plugin: 'base'
apply plugin: 'idea'
apply plugin: 'com.github.ben-manes.versions'

repositories {
jcenter()
}

if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}

dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
Expand All @@ -80,24 +42,48 @@ allprojects {
}
}
}

license {
mapping {
fxml = 'XML_STYLE'
}
exclude '**/*.png'
exclude '**/*.jpg'
exclude '**/*.scss'
}
}

config {
info {
description = 'BootstrapFX: CSS and widgets'
inceptionYear = '2015'
tags = ['javafx','css','bootstrap']

specification { enabled = false }
}

license {
licenses {
license {
id = 'MIT'
primary = true
}
}
}

javadoc {
options {
links('http://docs.oracle.com/javase/8/docs/api/',
'http://docs.oracle.com/javase/8/javafx/api/')
}
}
}

subprojects { subproj ->
apply plugin: 'java'
apply plugin: 'org.kordamp.gradle.stats'
apply from: rootProject.file('gradle/code-quality.gradle')
apply from: rootProject.file('gradle/javafx.gradle')

subproj.tasks.withType(JavaCompile) {
sourceCompatibility = subproj.sourceCompatibility
targetCompatibility = subproj.targetCompatibility
}

repositories {
jcenter()
}

dependencies {
compileOnly project.files(project.jfxrtLocation)
}
}
15 changes: 4 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
version=0.2.4
group=org.kordamp.bootstrapfx
sourceCompatibility=1.8
targetCompatibility=1.8

project_description=BootstrapFX: CSS and widgets
project_url=https://github.com/aalmiray/bootstrapfx
project_scm=https://github.com/aalmiray/bootstrapfx.git
project_issues=https://github.com/aalmiray/bootstrapfx/issues
project_bintray_repo=kordamp
project_bintray_org=aalmiray
version = 0.2.4
group = org.kordamp.bootstrapfx
sourceCompatibility = 1.8
targetCompatibility = 1.8
4 changes: 3 additions & 1 deletion config/HEADER → gradle/LICENSE_HEADER
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) ${year} Andres Almiray
SPDX-License-Identifier: MIT

Copyright (c) ${copyrightYear} ${author}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
50 changes: 0 additions & 50 deletions gradle/code-quality.gradle

This file was deleted.

33 changes: 0 additions & 33 deletions gradle/javafx.gradle

This file was deleted.

161 changes: 0 additions & 161 deletions gradle/publishing.gradle

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Loading

0 comments on commit 606ddf4

Please sign in to comment.