generated from mingliqiye/lib-tem
All checks were successful
Gitea Actions Build / Build (push) Successful in 49s
- 这个修改确保了项目可以访问 Maven 中央仓库,以获取所需的依赖项
82 lines
1.8 KiB
Plaintext
82 lines
1.8 KiB
Plaintext
plugins {
|
|
idea
|
|
id("java-library")
|
|
id("maven-publish")
|
|
}
|
|
|
|
val GROUPSID = project.properties["GROUPSID"] as String
|
|
val VERSIONS = project.properties["VERSIONS"] as String
|
|
val ARTIFACTID = project.properties["ARTIFACTID"] as String
|
|
|
|
group = GROUPSID
|
|
version = VERSIONS
|
|
|
|
base {
|
|
archivesName.set(ARTIFACTID)
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.springframework.boot:spring-boot-starter:2.7.14")
|
|
compileOnly("com.fasterxml.jackson.core:jackson-databind:2.19.2")
|
|
compileOnly("org.mybatis:mybatis:3.5.19")
|
|
|
|
implementation("org.bouncycastle:bcprov-jdk18on:1.81")
|
|
implementation("com.github.f4b6a3:uuid-creator:6.1.0")
|
|
implementation("org.mindrot:jbcrypt:0.4")
|
|
implementation("org.jetbrains:annotations:24.0.0")
|
|
compileOnly("org.projectlombok:lombok:1.18.38")
|
|
|
|
annotationProcessor("org.jetbrains:annotations:24.0.0")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.38")
|
|
}
|
|
|
|
|
|
sourceSets.main.configure {
|
|
java.setSrcDirs(files("src"))
|
|
resources.setSrcDirs(files("resources"))
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
tasks.withType<JavaExec>().configureEach {
|
|
jvmArgs = listOf(
|
|
"-Dfile.encoding=UTF-8",
|
|
"-Dsun.stdout.encoding=UTF-8",
|
|
"-Dsun.stderr.encoding=UTF-8"
|
|
)
|
|
}
|
|
|
|
|
|
tasks.withType<Javadoc> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "localMaven"
|
|
url = uri("D:/git/maven-repository-raw")
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
groupId = GROUPSID
|
|
artifactId = ARTIFACTID
|
|
version = VERSIONS
|
|
}
|
|
}
|
|
}
|