This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle
114 lines (96 loc) · 2.83 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0'
}
}
plugins {
id "com.jfrog.bintray" version "1.5"
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply from: 'gradle/code-quality.gradle'
apply from: 'gradle/mavenPublish.gradle'
group = 'org.javafxports'
version = '2.0.31-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext.publish = !project.version.endsWith('SNAPSHOT')
if (!hasProperty('bintrayUser') || !hasProperty('bintrayKey')) {
ext.bintrayUser = ''
ext.bintrayKey = ''
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases/'
}
mavenCentral()
jcenter()
google()
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 1, 'minutes'
resolutionStrategy.cacheChangingModulesFor 1, 'minutes'
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:3.0.1'
compile 'com.gluonhq:gvmbuilder:0.0.34'
compile 'javax.activation:javax.activation-api:1.2.0'
compile 'javax.xml.bind:jaxb-api:2.3.0'
compile 'com.sun.xml.bind:jaxb-core:2.3.0'
compile 'com.sun.xml.bind:jaxb-impl:2.3.0'
}
configurations {
published
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
// Allow mixed groovy/java source builds
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
from groovydoc.destinationDir
classifier = 'javadoc'
}
artifacts {
archives sourceJar, groovydocJar
}
bintray {
user = bintrayUser
key = bintrayKey
configurations = [ 'published', 'archives' ]
dryRun = !project.publish
publish = project.publish
pkg {
repo = 'maven'
name = project.name
desc = 'The jfxmobile-plugin is a gradle plugin that unifies the building of JavaFX applications for three different target platforms: android, ios and desktop.'
websiteUrl = 'http://javafxports.org'
issueTrackerUrl = 'https://github.com/javafxports/javafxmobile-plugin/issues'
vcsUrl = 'https://github.com/javafxports/javafxmobile-plugin'
licenses = [ 'BSD 3-Clause' ]
labels = [ 'ios', 'android', 'mobile', 'javafx', 'desktop', 'gradle', 'plugin' ]
version {
name = project.version
vcsTag = project.version
attributes = [ 'gradle-plugin' : "org.javafxports.jfxmobile:${project.group}:${project.name}" ]
}
}
}