-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
97 lines (81 loc) · 2.31 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20'
}
}
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group 'com.hiczp'
version '1.1'
description 'crc32-crack library for jvm'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
}
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
repositories {
maven {
url = uri('https://oss.sonatype.org/service/local/staging/deploy/maven2/')
credentials {
username = project.properties['ossUsername']
password = project.properties['ossPassword']
}
}
}
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = project.description
url = 'https://github.com/czp3009/crc32-crack'
licenses {
license {
name = 'GNU GENERAL PUBLIC LICENSE Version 3'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'czp3009'
name = 'czp3009'
email = 'https://www.hiczp.com'
}
}
scm {
connection = 'scm:git:git://github.com/czp3009/crc32-crack.git'
developerConnection = 'scm:git:ssh://github.com/czp3009/crc32-crack.git'
url = 'https://github.com/czp3009/crc32-crack'
}
}
}
}
}
signing {
sign publishing.publications.maven
}
gradle.taskGraph.whenReady { taskGraph ->
tasks.signMavenPublication.onlyIf { taskGraph.hasTask tasks.publish }
}