-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
71 lines (61 loc) · 1.88 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
71 lines (61 loc) · 1.88 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
java
`java-library`
id("io.freefair.lombok") version "8.13.1"
id("com.vanniktech.maven.publish") version "0.32.0"
}
group = "cn.mapleafgo"
version = "0.4.7"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
api("org.casbin:jcasbin:1.83.0")
api("io.etcd:jetcd-core:0.8.5")
implementation("cn.hutool:hutool-core:5.8.39")
implementation("cn.hutool:hutool-db:5.8.39")
implementation("redis.clients:jedis:6.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.13.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.13.4")
}
tasks.withType<JavaCompile> {
options.encoding = "utf-8"
}
tasks.withType<Javadoc> {
options.encoding = "utf-8"
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, false)
signAllPublications()
coordinates(project.group.toString(), project.name, project.version.toString())
pom {
name = project.name
description = "JCasbin 的扩充,包含 HutoolDB Adapter,Etcd Watcher"
url = "https://github.com/mapleafgo/jcasbin-extra"
inceptionYear = "2020"
licenses {
license {
name.set("MIT License")
url.set("./LICENSE")
}
}
developers {
developer {
id = "mapleafgo"
name = "慕枫"
email = "mapleafgo@163.com"
url = "https://github.com/mapleafgo"
}
}
scm {
url = "https://github.com/mapleafgo/jcasbin-extra"
connection = "scm:git:https://github.com/mapleafgo/jcasbin-extra.git"
developerConnection = "scm:git:ssh://github.com/mapleafgo/jcasbin-extra.git"
}
}
}