forked from rsgaetano/milagro-crypto-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (92 loc) · 2.56 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
98
99
100
101
102
103
104
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'java-library'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.6.3'
id 'io.codearte.nexus-staging' version '0.11.0'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.bmuschko.nexus'
nexusStaging {
packageGroup = "org.miracl"
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId 'milagro-crypto-java'
groupId 'org.miracl.milagro.amcl'
version '0.1.0'
from components.java
}
}
repositories {
maven {
// change to point to your repo, e.g. http://my.org/repo
url "$buildDir/repo"
}
}
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:23.0'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
archivesBaseName = 'milagro-crypto-java'
group = "org.miracl.milagro.amcl"
version = "0.1.0"
modifyPom {
project {
name 'milagro-crypto-java'
description 'MCJL - Milagro Crypto Java Library'
url '/~https://github.com/milagro-crypto/milagro-crypto-java'
inceptionYear '2018'
scm {
url 'https://bitbucket.org/objdict/objjson'
connection 'scm:/~https://github.com/milagro-crypto/milagro-crypto-java.git'
developerConnection 'scm:git://github.com/milagro-crypto/milagro-crypto-java.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 {
email 'support@miracl.com'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}