Skip to content

Commit 7e1a9e1

Browse files
committed
Fix build jar
1 parent 27109da commit 7e1a9e1

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

build.gradle

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,20 @@ minecraft {
3535
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
3636
}
3737

38+
configurations {
39+
embed
40+
compile.extendsFrom(embed)
41+
}
42+
3843
dependencies {
39-
// you may put jars on which you depend on in ./libs
40-
// or you may define them like so..
41-
//compile "some.group:artifact:version:classifier"
42-
//compile "some.group:artifact:version"
43-
// https://mvnrepository.com/artifact/trove/trove
44-
compile "trove:trove:1.0.2"
44+
embed "trove:trove:1.0.2"
4545

4646
// https://mvnrepository.com/artifact/org.mapdb/thread-weaver
4747
testCompile 'junit:junit:4.12'
4848
testCompile "org.mapdb:thread-weaver:3.0.mapdb"
49-
50-
// real examples
51-
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
52-
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
53-
54-
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
55-
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
56-
57-
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
58-
// except that these dependencies get remapped to your current MCP mappings
59-
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
60-
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
61-
62-
// for more info...
63-
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
64-
// http://www.gradle.org/docs/current/userguide/dependency_management.html
65-
6649
}
6750

51+
6852
jacocoTestReport {
6953
reports {
7054
xml.enabled true
@@ -90,3 +74,7 @@ processResources {
9074
exclude 'mcmod.info'
9175
}
9276
}
77+
78+
jar {
79+
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
80+
}

0 commit comments

Comments
 (0)