Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated gradle config and dummy gradle project
- Loading branch information
Showing
8 changed files
with
35 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,5 @@ hs_err_pid* | |
|
||
# gradle | ||
.gradle/ | ||
build/ | ||
gradle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,17 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This generated file contains a sample Java project to get you started. | ||
* For more details take a look at the Java Quickstart chapter in the Gradle | ||
* user guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html | ||
*/ | ||
|
||
plugins { | ||
// Apply the java plugin to add support for Java | ||
java | ||
|
||
// Apply the application plugin to add support for building an application | ||
application | ||
} | ||
|
||
repositories { | ||
// Use jcenter for resolving your dependencies. | ||
// You can declare any Maven/Ivy/file repository here. | ||
jcenter() | ||
mavenCentral() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
// This dependency is found on compile classpath of this component and consumers. | ||
implementation("com.google.guava:guava:26.0-jre") | ||
|
||
// Use JUnit test framework | ||
testImplementation("junit:junit:4.12") | ||
testImplementation("junit:junit:4.12") | ||
} | ||
|
||
application { | ||
// Define the main class for the application | ||
mainClassName = "demo.App" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
setSrcDirs(listOf("src")) | ||
} | ||
resources { | ||
setSrcDirs(listOf("resources")) | ||
} | ||
} | ||
mainClassName = "App" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* The settings file is used to specify which projects to include in your build. | ||
* | ||
* Detailed information about configuring a multi-project build in Gradle can be found | ||
* in the user guide at https://docs.gradle.org/5.0/userguide/multi_project_builds.html | ||
*/ | ||
rootProject.name = "uea-tsc" | ||
|
||
rootProject.name = "demo" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class App { | ||
public String getGreeting() { | ||
|
||
return "abc"; | ||
} | ||
|
||
public static void main(String[] args) { | ||
System.out.println(new App().getGreeting()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import org.junit.Test; | ||
import static org.junit.Assert.*; | ||
|
||
public class AppTest { | ||
@Test public void testAppHasAGreeting() { | ||
App classUnderTest = new App(); | ||
assertNotNull("app should have a greeting", classUnderTest.getGreeting()); | ||
System.out.println("hello"); | ||
} | ||
|
||
@Test public void testAppHasAGreeting2() { | ||
App classUnderTest = new App(); | ||
assertNotNull("app should have a greeting", classUnderTest.getGreeting()); | ||
System.out.println("goodbye"); | ||
} | ||
} |