-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
141 lines (117 loc) · 3.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
*/
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
// add additional dependencies here if you wish to reference instead of generate them (see example directory)
}
}
plugins {
id 'org.unbroken-dome.xjc' version '1.4.0'
id 'maven-publish'
id 'io.codearte.nexus-staging' version '0.11.0'
}
// Apply the java plugin to add support for Java
apply plugin: 'java'
// Apply the application plugin to add support for building an application
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'FunStart4j'
group = 'io.github.mainstringargs'
version = '1.1.0'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.4'
compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.2.4'
compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name:'slf4j-log4j12', version: '1.7.25'
}
xjcGenerate {
source = fileTree('src/main/schema') { include '*.dtd' }
targetPackage = 'io.github.mainstringargs.funstart4j.schema'
}
jar {
manifest {
attributes 'Main-Class': 'io.github.mainstringargs.funstart4j.FunStart4jGUI'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
compileJava {
options.debug = true
}
modifyPom {
project {
name 'FunStart4j'
description 'A Java Webstart Alternative technology with support for JNLPs.'
url 'https://github.com/mainstringargs/FunStart4j'
inceptionYear '2019'
scm {
url 'https://github.com/mainstringargs/FunStart4j'
connection 'https://github.com/mainstringargs/FunStart4j.git'
developerConnection 'https://github.com/mainstringargs/FunStart4j.git'
}
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'mainstringargs'
name 'main(String[] args)'
email 'mainstringargs@github.io'
}
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
nexusStaging {
packageGroup = "io.github.mainstringargs" //optional if packageGroup == project.getGroup()
}
// Define the main class for the application
mainClassName = 'io.github.mainstringargs.funstart4j.FunStart4jGUI'
run {
}
if (hasProperty('buildScan')) {
buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' }
}