|
1 | 1 | plugins { |
2 | | - id "java" //This is a java project, scala and groovy plugins also exist |
3 | | - id "nova.gradle" version "0.2.6" //Use the NOVA Gradle plugin version 0.2.6 |
| 2 | + id "java" // This is a java project, scala and groovy plugins also exist |
| 3 | +// id "jacoco" // Show code coverage report when running tests |
| 4 | + id "nova.gradle" version "0.2.6" // Use the NOVA Gradle plugin version 0.2.6 |
4 | 5 | } |
5 | 6 |
|
6 | | -dependencies { //Dependencies of this project |
7 | | - compile nova(nova_version) //Depend on NOVA for compiling |
| 7 | +repositories { |
| 8 | + mavenLocal() // Import the maven local repository, needed when the NOVA Maven is down |
| 9 | +} |
| 10 | + |
| 11 | +dependencies { // Dependencies of this project |
| 12 | + compile nova(nova_version) // Depend on NOVA for compiling |
| 13 | + |
| 14 | + // Test dependencies, required for unit testing |
| 15 | +// testCompile "junit:junit:4.12" |
| 16 | +// testCompile "org.assertj:assertj-core:3.0.0" |
| 17 | +// testCompile "org.mockito:mockito-core:1.+" |
| 18 | +// testRuntime 'org.slf4j:slf4j-simple:1.7.10' |
8 | 19 | } |
9 | 20 |
|
10 | 21 | nova { //This block is used for configuring the NOVA Gradle plugin |
11 | | - wrappers { //Configures wrapper profiles |
| 22 | + wrappers { // Configures wrapper profiles |
12 | 23 | /** |
13 | 24 | * This profile is called "17", you can skip the quotes if it's not numbers. |
14 | 25 | * This profile for example will generate the "run17Client" gradle task and create an IDEA |
15 | 26 | * config of the same name. |
16 | 27 | * The name can be changed to your liking. |
17 | 28 | */ |
18 | | - //Wrapper profile for MC 1.7.10 |
| 29 | + // Wrapper profile for MC 1.7.10 |
19 | 30 | "17" { |
20 | | - wrapper "nova.core:NOVA-Core-Wrapper-MC1.7:${nova_version}" |
| 31 | + wrapper "nova.core:NOVA-Core-Wrapper-MC1.7:$nova_version" |
21 | 32 | } |
22 | 33 |
|
23 | | - //Wrapper profile for MC 1.8 |
| 34 | + // Wrapper profile for MC 1.8 |
24 | 35 | "18" { |
25 | | - wrapper "nova.core:NOVA-Core-Wrapper-MC1.8:${nova_version}" |
| 36 | + wrapper "nova.core:NOVA-Core-Wrapper-MC1.8:$nova_version" |
26 | 37 | } |
27 | 38 | } |
28 | 39 | } |
0 commit comments