-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (59 loc) · 2.01 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
/*
* Copyright (c) 2017 Clivern. <https://clivern.com>. All rights reserved.
*/
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
apply plugin: 'maven'
archivesBaseName = "pluto"
version = '1.0.1-SNAPSHOT'
// 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()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
// Update Pom file /opt/gradle/bin/gradle updatePom
task updatePom {
doLast {
pom {
project {
groupId 'com.clivern'
artifactId 'pluto'
version '1.0.1-SNAPSHOT'
name 'Pluto'
description 'A Simple Java API For DateTime.'
url 'https://github.com/clivern/pluto'
licenses {
license {
name 'MIT License'
url 'https://raw.githubusercontent.com/Clivern/Pluto/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'clivern'
name 'AF'
email 'hello@clivern.com'
url 'http://clivern.com'
roles {
role 'Software Developer'
}
}
}
scm {
url 'https://github.com/clivern/pluto'
connection 'scm:git:git://github.com/clivern/pluto.git'
developerConnection 'scm:git:git@github.com:clivern/pluto.git'
}
}
}.writeTo("pluto.pom").writeTo("pluto.xml")
}
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
//compile 'com.clivern:pluto:1.0.1-SNAPSHOT'
}