Skip to content

Commit a2662f3

Browse files
committed
bintray publication should work now
1 parent 2e29f45 commit a2662f3

File tree

8 files changed

+95
-90
lines changed

8 files changed

+95
-90
lines changed

VWorkflows-Demo/src/main/java/eu/mihosoft/vrl/workflow/demo/MainWindowFXMLController.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,13 @@
5353
import javafx.scene.control.MenuItem;
5454
import javafx.scene.input.MouseEvent;
5555
import javafx.scene.layout.Pane;
56-
import jfxtras.labs.scene.control.window.Window;
57-
5856
import java.io.IOException;
5957
import java.net.URL;
6058
import java.nio.file.Paths;
6159
import java.util.ResourceBundle;
6260
import java.util.logging.Level;
6361
import java.util.logging.Logger;
62+
import jfxtras.scene.control.window.Window;
6463

6564
/**
6665
* FXML Controller class
+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
apply plugin: 'application'
2-
apply from: rootProject.file('gradle/javafx-plugin.gradle')
3-
4-
mainClassName= 'eu.mihosoft.vrl.workflow.demo.Main'
5-
6-
javafx {
7-
mainClass = mainClassName
8-
}
9-
10-
dependencies {
11-
compile project(':vworkflows-fx')
1+
apply plugin: 'application'
2+
apply from: rootProject.file('gradle/javafx-plugin.gradle')
3+
4+
mainClassName= 'eu.mihosoft.vrl.workflow.demo.Main'
5+
6+
javafx {
7+
mainClass = mainClassName
8+
}
9+
10+
dependencies {
11+
compile project(':vworkflows-fx')
1212
}

VWorkflows-FX/vworkflows-fx.gradle

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
repositories {
2-
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
3-
}
4-
5-
dependencies {
6-
compile project(':vworkflows-core')
7-
8-
if (project.jdk == 7) {
9-
compile "org.jfxtras:jfxtras-labs:2.2-r6-SNAPSHOT"
10-
} else if (project.jdk == 8) {
11-
compile "org.jfxtras:jfxtras-labs:8.0-r1"
12-
}
13-
14-
compile 'org.apache.commons:commons-math3:3.3'
1+
dependencies {
2+
compile project(':vworkflows-core')
3+
4+
compile 'org.apache.commons:commons-math3:3.3'
155
}

build.gradle

+8-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
classpath 'org.kordamp.gradle:stats-gradle-plugin:0.1.5'
1515
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
1616
classpath 'net.nemerosa:versioning:1.7+'
17-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
17+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
1818
}
1919
}
2020

@@ -30,6 +30,7 @@ ext {
3030
jacocoMergeExecFile = "${buildDir}/jacoco/root.exec"
3131
jacocoRootReportPath = "${buildDir}/reports/jacoco/root/"
3232
projectsWithCoverage = []
33+
projectsToPublish = []
3334
}
3435

3536
apply plugin: 'jacoco'
@@ -107,6 +108,7 @@ subprojects { subproj ->
107108
subproj.apply plugin: 'org.kordamp.gradle.stats'
108109

109110
if (subproj.publishJars.toBoolean()) {
111+
110112
task sourceJar(type: Jar) {
111113
group 'Build'
112114
description 'An archive of the source code'
@@ -118,6 +120,7 @@ subprojects { subproj ->
118120
subproj.apply from: rootProject.file('gradle/publishing.gradle')
119121
subproj.apply from: rootProject.file('gradle/javafx.gradle')
120122

123+
projectsToPublish << subproj
121124
projectsWithCoverage << subproj
122125

123126
dependencies {
@@ -188,9 +191,9 @@ coveralls {
188191
}
189192

190193
tasks.coveralls {
191-
group = 'Coverage reports'
192-
description = 'Uploads the aggregated coverage report to Coveralls'
194+
group = 'Coverage reports'
195+
description = 'Uploads the aggregated coverage report to Coveralls'
193196

194-
dependsOn jacocoRootReport
195-
onlyIf { System.env.'CI' }
197+
dependsOn jacocoRootReport
198+
onlyIf { System.env.'CI' }
196199
}

gradle/javafx-plugin.gradle

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
/*
2-
* Bootstrap script for the Gradle JavaFX Plugin.
3-
* (based on http://plugins.jasoft.fi/vaadin.plugin)
4-
*
5-
* The script will add the latest version of the plugin to the build script
6-
* dependencies and apply the plugin to the project. If you do not want
7-
* this behavior you can copy and paste the below configuration into your
8-
* own build script and define your own repository and version for the plugin.
9-
*/
10-
11-
buildscript {
12-
File javaHome = new File(System.properties['java.home'])
13-
javaHome = javaHome.name == 'jre' ? javaHome.parentFile : javaHome
14-
String jfxrtLocation = new File("${javaHome}/jre/lib/jfxrt.jar").absolutePath
15-
// JavaFX locations for JDK7, JDK7, JDK8
16-
for (location in ['lib/jfxrt.jar', 'jre/lib/jfxrt.jar', 'jre/lib/ext/jfxrt.jar']) {
17-
File file = new File(javaHome, location)
18-
if (file.exists()) {
19-
jfxrtLocation = file.absolutePath
20-
break
21-
}
22-
}
23-
24-
repositories {
25-
jcenter()
26-
}
27-
dependencies {
28-
classpath 'org.bitbucket.shemnon.javafxplugin:gradle-javafx-plugin:8.1.1'
29-
classpath project.files("${javaHome}/lib/ant-javafx.jar")
30-
classpath project.files(jfxrtLocation)
31-
}
32-
}
33-
34-
if (!project.plugins.findPlugin(org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)) {
35-
project.apply(plugin: org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)
36-
}
1+
/*
2+
* Bootstrap script for the Gradle JavaFX Plugin.
3+
* (based on http://plugins.jasoft.fi/vaadin.plugin)
4+
*
5+
* The script will add the latest version of the plugin to the build script
6+
* dependencies and apply the plugin to the project. If you do not want
7+
* this behavior you can copy and paste the below configuration into your
8+
* own build script and define your own repository and version for the plugin.
9+
*/
10+
11+
buildscript {
12+
File javaHome = new File(System.properties['java.home'])
13+
javaHome = javaHome.name == 'jre' ? javaHome.parentFile : javaHome
14+
String jfxrtLocation = new File("${javaHome}/jre/lib/jfxrt.jar").absolutePath
15+
// JavaFX locations for JDK7, JDK7, JDK8
16+
for (location in ['lib/jfxrt.jar', 'jre/lib/jfxrt.jar', 'jre/lib/ext/jfxrt.jar']) {
17+
File file = new File(javaHome, location)
18+
if (file.exists()) {
19+
jfxrtLocation = file.absolutePath
20+
break
21+
}
22+
}
23+
24+
repositories {
25+
jcenter()
26+
}
27+
dependencies {
28+
classpath 'org.bitbucket.shemnon.javafxplugin:gradle-javafx-plugin:8.1.1'
29+
classpath project.files("${javaHome}/lib/ant-javafx.jar")
30+
classpath project.files(jfxrtLocation)
31+
}
32+
}
33+
34+
if (!project.plugins.findPlugin(org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)) {
35+
project.apply(plugin: org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)
36+
}

gradle/publishing.gradle

+22-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ apply plugin: 'maven-publish'
44
apply plugin: 'com.jfrog.bintray'
55
apply plugin: 'net.nemerosa.versioning'
66

7+
task javadocJar(type: Jar, dependsOn: javadoc) {
8+
classifier = 'javadoc'
9+
from javadoc.destinationDir
10+
}
11+
12+
// create one jar for the source files
13+
task sourcesJar(type: Jar, dependsOn: classes) {
14+
classifier = 'sources'
15+
from sourceSets.main.allSource
16+
}
17+
18+
artifacts {
19+
archives jar
20+
archives javadocJar
21+
archives sourcesJar
22+
}
23+
724
def pomConfig = {
825
name project.name
926
description 'VWorkflows'
@@ -38,7 +55,8 @@ publishing {
3855
publications {
3956
mavenCustom(MavenPublication) {
4057
from components.java
41-
artifact sourceJar
58+
artifact sourcesJar
59+
artifact javadocJar
4260

4361
pom.withXml {
4462
// all dependencies should use the default scope (compile) but
@@ -82,12 +100,12 @@ bintray {
82100
key = project.bintrayApiKey
83101
publications = ['mavenCustom']
84102
pkg {
85-
repo = 'maven'
86-
userOrg = 'mihosoft'
103+
repo = 'VWorkflows'
104+
userOrg = 'miho'
87105
name = project.name
88106
desc = project.name
89107
licenses = ['BSD 2-Clause']
90-
labels = ['javafx', 'workoflows']
108+
labels = ['javafx', 'workflows','vrl','vrl-studio', 'graphs','flows', 'visual programming']
91109
websiteUrl = 'https://github.com/miho/VWorkflows'
92110
issueTrackerUrl = 'https://github.com/miho/VWorkflows/issues'
93111
vcsUrl = 'https://github.com/miho/VWorkflows.git'

gradle/version-info.gradle

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// maven deployment properties
2-
if (project.jdk == 8) {
3-
group = 'eu.mihosoft.vrl.workflow-8.0'
4-
} else {
5-
group = 'eu.mihosoft.vrl.workflow'
6-
}
7-
8-
version = '0.1-r2-SNAPSHOT'
1+
// maven deployment properties
2+
group = 'eu.mihosoft.vrl.workflow'
3+
version = '0.2'

settings.gradle

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
include 'VWorkflows-Core'
2-
include 'VWorkflows-FX'
3-
include 'VWorkflows-Demo'
4-
5-
rootProject.name = 'VWorkflows'
6-
rootProject.children.each { project ->
7-
String projectDirName = project.name
8-
project.name = project.name.toLowerCase()
9-
project.buildFileName = "${project.name}.gradle"
10-
assert project.buildFile.isFile()
1+
include 'VWorkflows-Core'
2+
include 'VWorkflows-FX'
3+
include 'VWorkflows-Demo'
4+
5+
rootProject.name = 'vworkflows'
6+
rootProject.children.each { project ->
7+
String projectDirName = project.name
8+
project.name = project.name.toLowerCase()
9+
project.buildFileName = "${project.name}.gradle"
10+
assert project.buildFile.isFile()
1111
}

0 commit comments

Comments
 (0)