45 lines
1.0 KiB
Groovy
45 lines
1.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven-publish'
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
}
|
|
|
|
group 'tech.nevets.osql4j'
|
|
version '1.0'
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.jetbrains:annotations:23.0.0'
|
|
implementation 'org.xerial:sqlite-jdbc:3.39.3.0'
|
|
implementation 'mysql:mysql-connector-java:8.0.30'
|
|
}
|
|
|
|
apply plugin: 'maven-publish'
|
|
publishing {
|
|
publications{
|
|
publish(MavenPublication) {
|
|
artifact("nexus/OSQL4J-$version" + ".jar") {
|
|
extension 'jar'
|
|
}
|
|
artifact("nexus/OSQL4J-$version" + "-bundled.jar") {
|
|
extension 'jar'
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name 'nexus'
|
|
url "https://repo.nevets.tech/repository/maven-releases/"
|
|
credentials {
|
|
username System.getenv('nexusUser')
|
|
password System.getenv('nexusPass')
|
|
}
|
|
}
|
|
}
|
|
} |