-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
79 lines (66 loc) · 2.06 KB
/
Copy pathbuild.gradle
File metadata and controls
79 lines (66 loc) · 2.06 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
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'io.github.jhspetersson'
version = '0.2.3'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.jspecify:jspecify:1.0.0'
testImplementation platform('org.junit:junit-bom:6.0.3')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'com.tngtech.archunit:archunit:1.4.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = project.name
description = 'Gatherers library for Java Stream API'
url = 'https://github.com/jhspetersson/packrat'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Ivan Petrichenko'
email = 'jhspetersson@gmail.com'
organizationUrl = 'https://github.com/jhspetersson'
}
}
scm {
connection = 'scm:git://github.com/jhspetersson/packrat.git'
developerConnection = 'scm:git:ssh://github.com/jhspetersson/packrat.git'
url = 'https://github.com/jhspetersson/packrat'
}
}
}
}
}
tasks.named('generatePomFileForMavenPublication') {
destination = file("${layout.buildDirectory.dir('libs').get()}/${project.name}-${project.version}.pom")
}
build.finalizedBy generatePomFileForMavenPublication