mirror of
https://github.com/HMCore/Core.git
synced 2025-12-10 12:56:15 +00:00
60 lines
1.3 KiB
Groovy
60 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
|
|
id 'com.github.johnrengelman.shadow' version '7.1.1'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group 'com.github.HMCore'
|
|
version '1.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
groupId = 'com.github.HMCore'
|
|
artifactId = 'Core'
|
|
version = '1.1'
|
|
|
|
from components.java
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib"
|
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.16.0'
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.16.0'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
javadoc {
|
|
if(JavaVersion.current().isJava9Compatible()) {
|
|
options.addBooleanOption('html5', true)
|
|
}
|
|
}
|
|
|
|
task unzip(type: Copy) {
|
|
def zipFile = file('build/libs/HMCore-1.1-SNAPSHOT-javadoc.jar')
|
|
def outputDir = file("${buildDir}/unpacked/javadoc")
|
|
|
|
from zipTree(zipFile)
|
|
into outputDir
|
|
} |