Skip to content

Instantly share code, notes, and snippets.

@deathcap
Created April 4, 2015 04:05
Show Gist options
  • Save deathcap/11d422f488c41a1dec91 to your computer and use it in GitHub Desktop.
Save deathcap/11d422f488c41a1dec91 to your computer and use it in GitHub Desktop.
Building the Glowstone project with Maven (15 seconds) vs Gradle (26 seconds)
https://github.com/deathcap/Glowstone/commits/maven
Glowstone $ time ./gradlew
:clean
:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:processResources
:classes
:jar
:assemble
:checkstyleMain
:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:processTestResources
:testClasses
:checkstyleTest
:test
:check
:build
:shadowJar
:remap
BUILD SUCCESSFUL
Total time: 25.887 secs
real 0m26.400s
user 0m50.818s
sys 0m2.813s
Glowstone $ git checkout maven
Switched to branch 'maven'
Glowstone $ time mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Glowstone 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ glowstone ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ glowstone ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 514 source files to /Users/admin/minecraft/Glowstone/target/classes
[WARNING] /Users/admin/minecraft/Glowstone/src/main/java/net/glowstone/generator/populators/DungeonPopulator.java: Some input files use or override a deprecated API.
[WARNING] /Users/admin/minecraft/Glowstone/src/main/java/net/glowstone/generator/populators/DungeonPopulator.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- gitdescribe-maven-plugin:1.3:gitdescribe (default) @ glowstone ---
[INFO] Setting Git Describe: git-Glowstone-1.8-174-g7de5c43
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ glowstone ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ glowstone ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ glowstone ---
[INFO] Surefire report directory: /Users/admin/minecraft/Glowstone/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running net.glowstone.block.TestItemTypes
Tests run: 386, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running net.glowstone.constants.AchievementTest
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running net.glowstone.constants.BiomeTest
Tests run: 61, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
Running net.glowstone.constants.EnchantmentTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running net.glowstone.constants.ItemIdsTest
Material WATER -> "minecraft:flowing_water" -> item: null
Material STATIONARY_WATER -> "minecraft:water" -> item: null
Material LAVA -> "minecraft:flowing_lava" -> item: null
Material STATIONARY_LAVA -> "minecraft:lava" -> item: null
Material BED_BLOCK -> "minecraft:bed" -> item: BED
Material PISTON_EXTENSION -> "minecraft:piston_head" -> item: null
Material PISTON_MOVING_PIECE -> "minecraft:piston_extension" -> item: null
Material DOUBLE_STEP -> "minecraft:double_stone_slab" -> item: null
Material FIRE -> "minecraft:fire" -> item: null
Material REDSTONE_WIRE -> "minecraft:redstone_wire" -> item: null
Material CROPS -> "minecraft:wheat" -> item: WHEAT
Material SIGN_POST -> "minecraft:standing_sign" -> item: null
Material WOODEN_DOOR -> "minecraft:wooden_door" -> item: WOOD_DOOR
Material WALL_SIGN -> "minecraft:wall_sign" -> item: null
Material IRON_DOOR_BLOCK -> "minecraft:iron_door" -> item: IRON_DOOR
Material GLOWING_REDSTONE_ORE -> "minecraft:lit_redstone_ore" -> item: null
Material REDSTONE_TORCH_OFF -> "minecraft:unlit_redstone_torch" -> item: null
Material SUGAR_CANE_BLOCK -> "minecraft:reeds" -> item: SUGAR_CANE
Material PORTAL -> "minecraft:portal" -> item: null
Material CAKE_BLOCK -> "minecraft:cake" -> item: CAKE
Material DIODE_BLOCK_OFF -> "minecraft:unpowered_repeater" -> item: null
Material DIODE_BLOCK_ON -> "minecraft:powered_repeater" -> item: null
Material PUMPKIN_STEM -> "minecraft:pumpkin_stem" -> item: null
Material MELON_STEM -> "minecraft:melon_stem" -> item: null
Material NETHER_WARTS -> "minecraft:nether_wart" -> item: NETHER_STALK
Material BREWING_STAND -> "minecraft:brewing_stand" -> item: BREWING_STAND_ITEM
Material CAULDRON -> "minecraft:cauldron" -> item: CAULDRON_ITEM
Material ENDER_PORTAL -> "minecraft:end_portal" -> item: null
Material REDSTONE_LAMP_ON -> "minecraft:lit_redstone_lamp" -> item: null
Material WOOD_DOUBLE_STEP -> "minecraft:double_wooden_slab" -> item: null
Material COCOA -> "minecraft:cocoa" -> item: null
Material TRIPWIRE -> "minecraft:tripwire" -> item: null
Material FLOWER_POT -> "minecraft:flower_pot" -> item: FLOWER_POT_ITEM
Material CARROT -> "minecraft:carrots" -> item: null
Material POTATO -> "minecraft:potatoes" -> item: null
Material SKULL -> "minecraft:skull" -> item: SKULL_ITEM
Material REDSTONE_COMPARATOR_OFF -> "minecraft:unpowered_comparator" -> item: null
Material REDSTONE_COMPARATOR_ON -> "minecraft:powered_comparator" -> item: null
Material STANDING_BANNER -> "minecraft:standing_banner" -> item: null
Material WALL_BANNER -> "minecraft:wall_banner" -> item: null
Material DAYLIGHT_DETECTOR_INVERTED -> "minecraft:daylight_detector_inverted" -> item: null
Material DOUBLE_STEP_2 -> "minecraft:double_stone_slab2" -> item: null
Material SPRUCE_DOOR -> "minecraft:spruce_door" -> item: SPRUCE_DOOR_ITEM
Material BIRCH_DOOR -> "minecraft:birch_door" -> item: BIRCH_DOOR_ITEM
Material JUNGLE_DOOR -> "minecraft:jungle_door" -> item: JUNGLE_DOOR_ITEM
Material ACACIA_DOOR -> "minecraft:acacia_door" -> item: ACACIA_DOOR_ITEM
Material DARK_OAK_DOOR -> "minecraft:dark_oak_door" -> item: DARK_OAK_DOOR_ITEM
Tests run: 386, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.124 sec
Running net.glowstone.constants.ParticleTest
Tests run: 84, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running net.glowstone.constants.PotionEffectTest
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running net.glowstone.constants.SoundTest
Tests run: 194, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running net.glowstone.constants.StatisticTest
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
Running net.glowstone.entity.MetadataIndexTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running net.glowstone.inventory.PlayerInventoryTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running net.glowstone.inventory.WindowClickLogicTest
Apr 03, 2015 9:01:50 PM org.bukkit.Bukkit setServer
INFO: This server is running Glowstone version Test-Shim (Implementing API version Test-Shim)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running net.glowstone.net.HandshakeProtocolTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec
Running net.glowstone.net.LoginProtocolTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running net.glowstone.net.PlayProtocolTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.085 sec
Running net.glowstone.net.StatusProtocolTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running net.glowstone.util.nbt.NbtInputTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running net.glowstone.util.nbt.NbtOutputTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Results :
Tests run: 1238, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.1:jar (default-jar) @ glowstone ---
[INFO] Building jar: /Users/admin/minecraft/Glowstone/target/glowstone-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-shade-plugin:2.3:shade (default) @ glowstone ---
[INFO] Including net.glowstone:glowkit:jar:1.8-R1-SNAPSHOT in the shaded jar.
[INFO] Including com.flowpowered:flow-networking:jar:1.0.0-SNAPSHOT in the shaded jar.
[INFO] Including io.netty:netty-all:jar:4.0.21.Final in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.7 in the shaded jar.
[INFO] Including jline:jline:jar:2.11 in the shaded jar.
[INFO] Including org.projectlombok:lombok:jar:1.14.8 in the shaded jar.
[INFO] Including org.slf4j:slf4j-jdk14:jar:1.7.7 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /Users/admin/minecraft/Glowstone/target/glowstone-0.0.1-SNAPSHOT.jar with /Users/admin/minecraft/Glowstone/target/glowstone-0.0.1-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: /Users/admin/minecraft/Glowstone/dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at: /Users/admin/minecraft/Glowstone/dependency-reduced-pom.xml
[INFO]
[INFO] --- specialsource-maven-plugin:1.2.1:remap (default) @ glowstone ---
[INFO] Replacing original artifact with remapped artifact.
[INFO] Replacing /Users/admin/minecraft/Glowstone/target/glowstone-0.0.1-SNAPSHOT.jar with /Users/admin/minecraft/Glowstone/target/glowstone-0.0.1-SNAPSHOT-remapped.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.784s
[INFO] Finished at: Fri Apr 03 21:01:56 PDT 2015
[INFO] Final Memory: 51M/1462M
[INFO] ------------------------------------------------------------------------
real 0m14.810s
user 0m31.865s
sys 0m2.175s
Glowstone $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment