-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
82 lines (70 loc) · 2.31 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.9"
}
}
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: "com.github.sherter.google-java-format"
apply from: 'gradle/local-deploy.gradle'
apply from: 'gradle/release.gradle'
repositories {
jcenter()
flatDir {
dirs '/home/vincent/Github/DarkStackOverflowTheme/build/libs'
dirs '/home/vincent/Github/jiconfont-google_material_design_icons/target'
}
}
dependencies {
implementation 'org.swinglabs:swingx:1.6.1'
implementation 'com.github.jiconfont:jiconfont-swing:1.0.1'
//Slf4j configuration
testCompile 'ch.qos.logback:logback-classic:1.2.3'
testCompile 'ch.qos.logback:logback-core:1.2.3'
testCompile 'org.slf4j:slf4j-api:1.7.25'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
testCompile group: 'org.assertj', name: 'assertj-swing-junit', version: '3.9.2'
// Testing dependencies
testCompile 'io.github.material-ui-swing:DarkStackOverflowTheme:0.0.1-rc2'
testCompile group: 'com.toedter', name: 'jcalendar', version: '1.4'
}
allprojects {
apply plugin: 'java'
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation,unchecked"
}
}
sourceCompatibility = "${JDK_VERSION}"
targetCompatibility = "${JDK_VERSION}"
}
jar {
archiveVersion.set(VERSION as String)
inputs.property("moduleName", MODULE_NAME)
manifest {
attributes 'Automatic-Module-Name': MODULE_NAME
}
}
task jarWithDependencies(type: Jar) {
archiveVersion.set(VERSION as String)
archiveClassifier.set('with-dependencies')
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
task runDemo(type: Exec) {
group = "material-ui-swing"
description = "Run the Material-UI-Swing demo"
commandLine "java", "-classpath", sourceSets.test.runtimeClasspath.getAsPath(), 'integration.gui.mock.DemoGUITest'
}
uploadArchives.onlyIf { property('RELEASE_ENABLE') == 'true'}
signArchives.onlyIf { property('RELEASE_ENABLE') == 'true'}