Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
add raw tick time with vanillagradle
Browse files Browse the repository at this point in the history
  • Loading branch information
phit committed Nov 12, 2017
1 parent b09cbb6 commit bb29726
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
23 changes: 4 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,20 @@ buildscript {
}

plugins {
id 'java'
id 'idea'
id 'signing'
id 'ninja.miserable.blossom' version '1.0.1'
id 'com.github.johnrengelman.shadow' version '1.2.4'
id 'org.spongepowered.plugin' version '0.8.1'
id 'net.minecrell.vanillagradle.server' version '2.2-6'
}

apply plugin: 'net.minecraftforge.gradle.forge'

minecraft {
mappings = 'snapshot_20171007'
makeObfSourceJar = false
runDir = "run"
version = '14.23.0.2503'
version = '1.12.2'
}

group = 'org.stonebound.prometheusexporter'
version = '1.3.0'
description = "Sponge Minecraft Prometheus Exporter"
version = '1.3.1'
description = "Prometheus Exporter for Sponge"

compileJava {
sourceCompatibility = '1.8'
Expand Down Expand Up @@ -74,14 +68,6 @@ shadowJar {
archiveName = "spongeprometheusexporter-${version}-plugin.jar"
}

blossom {
def location = 'src/main/java/org/stonebound/prometheusexporter/PluginInfo.java'

replaceToken '@name@', project.name, location
replaceToken '@version@', project.version, location
replaceToken '@description@', project.description, location
}

reobf {
shadowJar{}
}
Expand All @@ -90,7 +76,6 @@ tasks.build.dependsOn reobfShadowJar

signing {
if (project.hasProperty('signing.keyId') && project.hasProperty('signing.password') && project.hasProperty('signing.secretKeyRingFile')) {
sign configurations.archives
sign configurations.shadow
}
}
12 changes: 0 additions & 12 deletions src/main/java/org/stonebound/prometheusexporter/PluginInfo.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

import java.io.File;

@Plugin(id = PluginInfo.ID,
name = PluginInfo.NAME,
version = PluginInfo.VERSION,
description = PluginInfo.DESCRIPTION,
url = PluginInfo.URL
@Plugin(id = "spongeprometheusexporter",
name = "SpongePrometheusExporter",
version = "1.3.0",
description = "Prometheus Exporter for Sponge",
url = "https://ore.spongepowered.org/phit/PrometheusExporter",
authors = "phit"
)

public class PrometheusExporter {
Expand Down

0 comments on commit bb29726

Please sign in to comment.