-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (61 loc) · 1.82 KB
/
build.gradle
File metadata and controls
77 lines (61 loc) · 1.82 KB
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
plugins {
id 'java'
id 'maven'
}
group 'com.mishin870.labgenreloaded'
version '1.0.3'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
options.encoding = 'UTF-8'
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
ext.jettyVersion = "9.4.17.v20190418"
compileJava.options.compilerArgs.add '-parameters'
compileTestJava.options.compilerArgs.add '-parameters'
configurations {
deployerJars
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
compile "javax.servlet:javax.servlet-api:3.1.0"
compile "org.eclipse.jetty.websocket:websocket-server:${jettyVersion}"
compile "org.eclipse.jetty.websocket:websocket-servlet:${jettyVersion}"
compile "org.eclipse.jetty:jetty-util-ajax:${jettyVersion}"
compile "com.jsoniter:jsoniter:0.9.19"
testCompile group: 'junit', name: 'junit', version: '4.12'
deployerJars "org.apache.maven.wagon:wagon-ssh:2.9"
}
task packageSources(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives packageSources
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scp://labgen.zss.local/var/www/html_ssl/labgen/dev/maven/") {
authentication(userName: "user", password: "user")
}
}
}
/*uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + projectDir + "/../maven_repo")
pom.whenConfigured {
p -> p.dependencies.removeAll { it.scope == "compile" }
}
}
}
}*/