Skip to content

Commit

Permalink
Added maven publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqzn committed Apr 16, 2023
1 parent 68c479d commit 3b65843
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
14 changes: 13 additions & 1 deletion annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'maven-publish'
}

group 'io.github.mqzn.commands'
Expand Down Expand Up @@ -32,6 +33,17 @@ java {
withJavadocJar()
}

apply plugin: 'java'
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}

apply plugin: 'java'
apply plugin: 'maven-publish'

13 changes: 13 additions & 0 deletions bungee/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'maven-publish'
}

group 'io.github.mqzn.commands'
Expand Down Expand Up @@ -45,6 +46,18 @@ shadowJar {
setArchiveName("mCommands-Bungee-${project.version}.jar")
}

publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}

apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'

13 changes: 12 additions & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'maven-publish'
}


Expand Down Expand Up @@ -38,6 +39,16 @@ java {
withJavadocJar()

}

publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}

apply plugin: 'java'
apply plugin: 'maven-publish'
12 changes: 12 additions & 0 deletions spigot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'maven-publish'
}

group 'io.github.mqzn.commands'
Expand Down Expand Up @@ -48,7 +49,18 @@ shadowJar {
setArchiveName("mCommands-Spigot-${project.version}.jar")
}

publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}

apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'

0 comments on commit 3b65843

Please sign in to comment.