-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (84 loc) · 2.37 KB
/
build.gradle
File metadata and controls
102 lines (84 loc) · 2.37 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'java'
id 'io.codearte.nexus-staging' version '0.11.0'
}
apply plugin: 'com.bmuschko.nexus'
group 'io.github.moltenjson'
version '2.5.2-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// Google GSON's library
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
// Google Guava's library
compile group: 'com.google.guava', name: 'guava', version: '17.0'
// Apache IO commons library
compile group: 'commons-io', name: 'commons-io', version: '2.6'
// JetBrains annotations library
compile group: 'org.jetbrains', name: 'annotations', version: '17.0.0'
}
/* Removed in favor of nexus
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
*/
sourceSets {
main {
java {
srcDir 'src'
exclude 'src/main/java/examples'
}
}
}
modifyPom {
project {
name 'MoltenJSON'
description 'A powerful gson-based library for interacting with any type and level of JSON.'
url 'https://github.com/moltenjson/MoltenJSON'
inceptionYear '2019'
scm {
url 'https://github.com/moltenjson/MoltenJSON'
connection 'scm:https://github.com/moltenjson/MoltenJSON.git'
developerConnection 'scm:git://github.com/moltenjson/MoltenJSON.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'reflxctiondev'
name 'ReflxctionDev'
email 'aloosh.kasasbeh@gmail.com'
}
}
}
}
extraArchive {
sources = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}