Skip to content

Commit 9045a03

Browse files
committed
Updated the build.gradle to make easy imports.
1 parent 787b159 commit 9045a03

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

build.gradle

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
/*
2-
* This build file was generated by the Gradle 'init' task.
3-
*
4-
* This generated file contains a sample Java Library project to get you started.
5-
* For more details take a look at the Java Libraries chapter in the Gradle
6-
* user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html
7-
*/
1+
apply plugin: 'java'
2+
apply plugin: 'maven'
3+
apply plugin: 'eclipse'
4+
version = '1.0'
85

9-
// Apply the java-library plugin to add support for Java Library
10-
apply plugin: 'java-library'
6+
sourceCompatibility = 1.8
7+
targetCompatibility = 1.8
8+
tasks.withType(JavaCompile) {
9+
options.encoding = 'UTF-8'
10+
}
1111

12-
// In this section you declare where to find the dependencies of your project
1312
repositories {
14-
// Use jcenter for resolving your dependencies.
15-
// You can declare any Maven/Ivy/file repository here.
16-
jcenter()
13+
mavenCentral()
1714
}
1815

19-
dependencies {
20-
// This dependency is exported to consumers, that is to say found on their compile classpath.
21-
api 'org.apache.commons:commons-math3:3.6.1'
22-
23-
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
24-
implementation 'com.google.guava:guava:21.0'
16+
sourceSets {
17+
main {
18+
java {
19+
srcDirs = ['.']
20+
exclude 'gradle/*'
21+
}
22+
}
23+
}
2524

26-
// Use JUnit test framework
27-
testImplementation 'junit:junit:4.12'
25+
dependencies {
26+
compile group: 'junit', name: 'junit', version:'4.12'
27+
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version:'5.0.1'
2828
}
2929

0 commit comments

Comments
 (0)