-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
79 lines (69 loc) · 2.05 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
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
}
group 'sh.stein'
version '1.2'
compileJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
implementation 'com.microsoft.playwright:playwright:1.15.0'
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/'))
snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/'))
}
}
}
project.plugins.withType(MavenPublishPlugin).all {
PublishingExtension publishing = project.extensions.getByType(PublishingExtension)
publishing.publications.withType(MavenPublication).all { mavenPublication ->
mavenPublication.pom {
name = 'sh.stein:carbon-api'
description = 'An unofficial Java API for Carbon. Create and share beautiful images of your source code, dynamically, with Java!'
url = 'https://github.com/jacobmstein/carbon-api'
developers {
developer {
id = 'jacobmstein'
name = 'Jacob Stein'
email = 'jacob@stein.sh'
}
}
licenses {
license {
name = 'The MIT License'
url = 'https://github.com/jacobmstein/carbon-api/LICENSE.md'
}
}
scm {
connection = 'scm:git:https://github.com/jacobmstein/carbon-api'
developerConnection = 'scm:git:ssh://github.com/jacobmstein/carbon-api.git'
url = 'https://github.com/jacobmstein/carbon-api'
}
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
repositories {
mavenCentral()
}
signing {
useGpgCmd()
sign publishing.publications.maven
}