This repository was archived by the owner on Apr 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (74 loc) · 2.02 KB
/
build.gradle
File metadata and controls
88 lines (74 loc) · 2.02 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
78
79
80
81
82
83
84
85
86
87
88
plugins {
id "com.github.hierynomus.license" version "0.14.0"
id "com.jfrog.bintray" version "1.8.4"
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
version = '1.0.3'
group = 'net.cpas'
archivesBaseName = 'CpasLibrary'
sourceCompatibility = 1.8
targetCompatibility = 1.8
project.ext.cpasMavenUser = hasProperty('cpasMavenUser') ? cpasMavenUser : System.getenv('cpasMavenUser')
project.ext.cpasMavenPassword = hasProperty('cpasMavenPassword') ? cpasMavenPassword : System.getenv('cpasMavenPassword')
project.ext.cpasMavenUrl = hasProperty('cpasMavenUrl') ? cpasMavenUrl : System.getenv('cpasMavenUrl')
repositories {
mavenCentral()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.3'
}
license {
header project.file("LICENSE.txt")
strictCheck true
mapping {
java='SLASHSTAR_STYLE'
}
}
shadowJar {
baseName = archivesBaseName
classifier = null
version = version
relocate 'com.fasterxml.jackson', 'net.cpas.fasterxml'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId "${group}"
artifactId "${archivesBaseName}"
version "${version}"
from components.java
artifact (sourcesJar) {
classifier "sources"
}
artifact (javadocJar) {
classifier "javadoc"
}
}
}
}
bintray {
user = "${cpasMavenUser}"
key = "${cpasMavenPassword}"
publications = ['mavenJava']
pkg {
repo = 'general'
name = 'cpas'
licenses = ['MIT']
vcsUrl = 'https://github.com/agent6262/Java-CPAS-Library.git'
}
}