-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (96 loc) · 2.87 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
105
plugins {
id 'maven-publish'
id 'signing'
id 'java'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
}
sourceSets {
main {
java {
srcDirs = ['src']
include '**/*.java'
}
resources {
srcDirs = ['src']
exclude '**/*.java'
}
}
test {
java {
srcDirs = ['test']
include '**/*.java'
}
resources {
srcDirs = ['test']
exclude '**/*.java'
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'de.inetsoftware'
artifactId = 'exceljconnect'
version = '1.7'
from components.java
pom {
name = 'Excel driver for Java'
description = 'A Excel driver (*.xlsx) written completely in Java (pure Java).'
url = 'https://github.com/i-net-software/ExcelJConnect'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'HardworkingMarek'
name = 'Marek'
organization = 'i-net software'
organizationUrl = 'https://www.inetsoftware.de'
}
}
scm {
connection = 'scm:git:[email protected]:i-net-software/ExcelJConnect.git'
developerConnection = 'scm:git:[email protected]:i-net-software/ExcelJConnect.git'
url = 'https://github.com/i-net-software/ExcelJConnect'
}
}
}
}
repositories {
maven {
name = 'sonatype'
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.findProperty("ossrhUsername")
password = project.findProperty("ossrhPassword")
}
}
}
}
signing {
required { project.hasProperty('signing.keyId') || project.hasProperty('signing.key') }
if( project.hasProperty('signing.key') ) {
useInMemoryPgpKeys( project.findProperty('signing.key'), project.findProperty('signing.password') )
}
sign publishing.publications.maven
}
test {
useJUnitPlatform()
}