-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-github.gradle
More file actions
97 lines (89 loc) · 3.12 KB
/
build-github.gradle
File metadata and controls
97 lines (89 loc) · 3.12 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
plugins {
id 'java-library'
id 'maven-publish'
}
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {options.encoding = "UTF-8"}
group = 'io.github.mohammadrezaeicode'
version = '1.0.1'
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
}
publishing {
publications {
gpr(MavenPublication) {
artifactId = "excel"
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'MR Excel'
description = 'A versatile Java library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.'
url = 'https://github.com/mohammadrezaeicode/mr-excel-java'
// properties = [
// myProp: "value",
// "prop.with.dots": "anotherValue"
// ]
licenses {
license {
name = 'The MIT License'
url = 'https://github.com/mohammadrezaeicode/mr-excel-repo/blob/main/LICENSE'
}
}
developers {
developer {
id = 'MohammadR'
name = 'Mohammad Rezaei'
email = 'mohammadrezaeicode@gmail.com'
}
}
scm {
connection = 'scm:git:https://github.com/mohammadrezaeicode/mr-excel-java.git'
developerConnection = 'scm:git:git@github.com:mohammadrezaeicode/mr-excel-java.git'
url = 'https://github.com/mohammadrezaeicode/mr-excel-java'
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mohammadrezaeicode/mr-excel-java") // replace OWNER and REPOSITORY with your GitHub username and your repository name
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
}
}
}
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}