Skip to content

Commit

Permalink
🚀 DiSky has now its own maven repo!
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Jan 13, 2025
1 parent f46f1d3 commit 861cc10
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id 'maven-publish'
id 'java'
id 'idea'
id "com.gradleup.shadow" version "9.0.0-beta4"
Expand Down Expand Up @@ -117,4 +118,33 @@ idea {
}
}

task sourceJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}

publishing {
publications {
maven(MavenPublication) {
from components.java
artifact(sourceJar)

groupId = 'net.itsthesky'
artifactId = 'DiSky'
version = project.version + '-SNAPSHOT'
}
}

repositories {
maven {
name = 'nexus'
url = "https://gradle.itsthesky.net/repository/DiSky/"
credentials {
username = project.findProperty("nexusUsername") ?: System.getenv("NEXUS_USERNAME")
password = project.findProperty("nexusPassword") ?: System.getenv("NEXUS_PASSWORD")
}
}
}
}

compileJava.options.encoding = 'UTF-8'

0 comments on commit 861cc10

Please sign in to comment.