Skip to content
Permalink
Browse files

Remove the allprojects block from gradle.build

  • Loading branch information
DarkArc committed Jan 5, 2020
1 parent d5e27f7 commit 26ef6aff868b5d79cc9c9d51551f1d4744f7643b
Showing with 88 additions and 90 deletions.
  1. +88 −90 build.gradle
@@ -44,116 +44,114 @@ if (!project.hasProperty("gitCommitHash")) {
}
}

allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.jfrog.artifactory'

group = pluginGroup
version = pluginVersion
ext.internalVersion = version + ";" + gitCommitHash

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenCentral()
maven {
name = 'sk89q-repo'
url = 'http://maven.sk89q.com/repo/'
}
maven {
name = 'Destroystokyo Repo'
url = 'https://repo.destroystokyo.com/repository/maven-public/'
}
}

group = pluginGroup
version = pluginVersion
ext.internalVersion = version + ";" + gitCommitHash
dependencies {
compile 'com.destroystokyo.paper:paper-api:1.15.1-R0.1-SNAPSHOT'
compile 'com.sk89q.worldedit:worldedit-core:7.1.0-SNAPSHOT'
compile 'com.sk89q.worldedit:worldedit-bukkit:7.1.0-SNAPSHOT'
compile 'org.enginehub.jinglenote:jinglenote-core:1.0.0-SNAPSHOT'
compile 'org.enginehub.jinglenote:jinglenote-bukkit:1.0.0-SNAPSHOT'
compile 'com.zachsthings.libcomponents:libcomponents-bukkit:1.3.0-SNAPSHOT'
compile 'net.sf.opencsv:opencsv:2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
testCompile group: 'junit', name: 'junit', version: '4.12'
}

repositories {
mavenCentral()
maven {
name = 'sk89q-repo'
url = 'http://maven.sk89q.com/repo/'
}
maven {
name = 'Destroystokyo Repo'
url = 'https://repo.destroystokyo.com/repository/maven-public/'
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

dependencies {
compile 'com.destroystokyo.paper:paper-api:1.15.1-R0.1-SNAPSHOT'
compile 'com.sk89q.worldedit:worldedit-core:7.1.0-SNAPSHOT'
compile 'com.sk89q.worldedit:worldedit-bukkit:7.1.0-SNAPSHOT'
compile 'org.enginehub.jinglenote:jinglenote-core:1.0.0-SNAPSHOT'
compile 'org.enginehub.jinglenote:jinglenote-bukkit:1.0.0-SNAPSHOT'
compile 'com.zachsthings.libcomponents:libcomponents-bukkit:1.3.0-SNAPSHOT'
compile 'net.sf.opencsv:opencsv:2.0'

testCompile group: 'junit', name: 'junit', version: '4.12'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives shadowJar
archives sourcesJar
archives javadocJar
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
build.dependsOn(sourcesJar)
build.dependsOn(javadocJar)

artifacts {
archives shadowJar
archives sourcesJar
archives javadocJar
jar {
manifest {
attributes("Class-Path": "CommandBook/WorldEdit.jar lib/WorldEdit.jar ../lib/WorldEdit.jar ../WorldEdit.jar",
"WorldEdit-Version": version)
}
}

build.dependsOn(sourcesJar)
build.dependsOn(javadocJar)
shadowJar {
classifier 'dist'

jar {
manifest {
attributes("Class-Path": "CommandBook/WorldEdit.jar lib/WorldEdit.jar ../lib/WorldEdit.jar ../WorldEdit.jar",
"WorldEdit-Version": version)
dependencies {
include(dependency('net.sf.opencsv:opencsv'))
include(dependency('com.zachsthings.libcomponents:libcomponents-bukkit'))
relocate ("org.enginehub.jinglenote", "com.sk89q.commandbook.enginehub.jinglenote") {
include(dependency("org.enginehub.jinglenote:jinglenote-core"))
include(dependency("org.enginehub.jinglenote:jinglenote-bukkit"))
}
}

shadowJar {
classifier 'dist'

dependencies {
include(dependency('net.sf.opencsv:opencsv'))
include(dependency('com.zachsthings.libcomponents:libcomponents-bukkit'))
relocate ("org.enginehub.jinglenote", "com.sk89q.commandbook.enginehub.jinglenote") {
include(dependency("org.enginehub.jinglenote:jinglenote-core"))
include(dependency("org.enginehub.jinglenote:jinglenote-bukkit"))
}
}

exclude 'GradleStart**'
exclude '.cache'
exclude 'LICENSE*'
}
exclude 'GradleStart**'
exclude '.cache'
exclude 'LICENSE*'
}

artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = project.version.contains("SNAPSHOT") ? 'libs-snapshot-local' : 'libs-release-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = project.version.contains("SNAPSHOT") ? 'libs-snapshot-local' : 'libs-release-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true

}
}
}

resolve {
repository {
repoKey = 'repo'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
resolve {
repository {
repoKey = 'repo'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
}

processResources {
from (sourceSets.main.resources.srcDirs) {
expand 'internalVersion': project.internalVersion
include 'plugin.yml'
}
processResources {
from (sourceSets.main.resources.srcDirs) {
expand 'internalVersion': project.internalVersion
include 'plugin.yml'
}

from (sourceSets.main.resources.srcDirs) {
exclude 'plugin.yml'
}
from (sourceSets.main.resources.srcDirs) {
exclude 'plugin.yml'
}
}

0 comments on commit 26ef6af

Please sign in to comment.
You can’t perform that action at this time.