generated from mingliqiye/lib-tem
- 更新 `build.gradle.kts` 中的 Dokka 版本从2.1.0-Beta 到2.0.0- 调整了 Gradle 任务依赖方式,使用字符串名称替代任务引用 - 升级项目版本号从 4.1.8 到 4.1.9
91 lines
2.8 KiB
Plaintext
91 lines
2.8 KiB
Plaintext
/*
|
|
* Copyright 2025 mingliqiye
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* ProjectName mingli-utils
|
|
* ModuleName mingli-utils.jdk8
|
|
* CurrentFile build.gradle.kts
|
|
* LastUpdate 2025-09-21 15:39:12
|
|
* UpdateUser MingLiPro
|
|
*/
|
|
|
|
plugins {
|
|
id("java-library")
|
|
id("maven-publish")
|
|
signing
|
|
kotlin("jvm") version "2.2.20"
|
|
id("org.jetbrains.dokka") version "2.0.0"
|
|
}
|
|
val GROUPSID = project.properties["GROUPSID"] as String
|
|
val VERSIONS = project.properties["VERSIONS"] as String
|
|
val ARTIFACTID = project.properties["ARTIFACTID"] as String
|
|
version = VERSIONS
|
|
group = GROUPSID
|
|
|
|
base.archivesName.set(ARTIFACTID)
|
|
|
|
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "MavenRepositoryRaw"
|
|
url = uri("C:/data/git/maven-repository-raw")
|
|
}
|
|
maven {
|
|
name = "OSSRepository"
|
|
url = uri("C:/data/git/maven-repository-raw-utils")
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
artifactId = "$ARTIFACTID-win-jdk8"
|
|
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
|
|
pom {
|
|
name = "mingli-utils-win-jdk8"
|
|
url = "https://mingli-utils.mingliqiye.com"
|
|
description = "A Java/kotlin Utils"
|
|
licenses {
|
|
license {
|
|
name = "The Apache License, Version 2.0"
|
|
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = "minglipro"
|
|
name = "mingli"
|
|
email = "minglipro@163.com"
|
|
}
|
|
}
|
|
scm {
|
|
connection = "scm:git:https://git.mingliqiye.com/minglipro/mingli-utils.git"
|
|
developerConnection = "scm:git:https://git.mingliqiye.com:minglipro/mingli-utils.git"
|
|
url = "https://git.mingliqiye.com/minglipro/mingli-utils"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
signing {
|
|
sign(publishing.publications)
|
|
}
|
|
}
|
|
|
|
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
|
|
dependencies {
|
|
api(rootProject)
|
|
implementation("com.mingliqiye.utils.jna:WinKernel32Platform:1.0.1")
|
|
}
|