-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (78 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
id 'java'
id 'maven'
id 'idea'
id 'eclipse'
id 'com.github.hierynomus.license' version '0.11.0'
}
defaultTasks 'clean', 'licenseFormat'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'xyz.lexteam'
version = '1.0.0-SNAPSHOT'
description = "Guide - Lexteam Common Libraries for Java 1.8."
ext.url = 'http://www.lexteam.xyz/'
repositories {
mavenCentral()
}
dependencies {
}
license {
header file('HEADER.txt')
include '**/*.java'
include '**/*.groovy'
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task javadocJar(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives javadocJar
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'http://lex1.lexteam.xyz:8888/repository/'
+ (version.endsWith('-SNAPSHOT') ? 'snapshots' : 'internal') + '/') {
authentication(userName: project.lexRepoUser, password: project.lexRepoPass)
}
pom {
artifactId = project.archivesBaseName.toLowerCase()
project {
name = project.archivesBaseName
description = project.description
packaging = 'jar'
url = project.url
scm {
url = "https://github.com/Lexteam/Guide"
connection = "scm:git:https://github.com/Lexteam/Guide.git"
developerConnection = "scm:git:[email protected]:Lexteam/Guide.git"
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/Lexteam/Guide/issues'
}
licenses {
license {
name = 'MIT License'
url = 'http://opensource.org/licenses/MIT'
distribution = 'repo'
}
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}