-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
0 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
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,19 @@ | ||
plugins { | ||
id 'java-library' | ||
} | ||
|
||
group = 'com.acme.somelib' | ||
version = '1.0' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
api 'org.apache.commons:commons-math3:3.6.1' | ||
api 'dummy:for-test:1.0' | ||
|
||
implementation 'com.google.guava:guava:29.0-jre' | ||
|
||
testImplementation 'junit:junit:4.13' | ||
} |
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 @@ | ||
/* | ||
* 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 manual at https://docs.gradle.org/6.5/userguide/multi_project_builds.html | ||
*/ | ||
|
||
rootProject.name = 'somelib1' |
10 changes: 10 additions & 0 deletions
10
samples/repo/testlib0/src/main/java/com/acme/somelib1/Library.java
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 @@ | ||
/* | ||
* This Java source file was generated by the Gradle 'init' task. | ||
*/ | ||
package com.acme.somelib1; | ||
|
||
public class Library { | ||
public boolean someLibraryMethod() { | ||
return true; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
samples/repo/testlib0/src/test/java/com/acme/somelib1/LibraryTest.java
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,14 @@ | ||
/* | ||
* This Java source file was generated by the Gradle 'init' task. | ||
*/ | ||
package com.acme.somelib1; | ||
|
||
import org.junit.Test; | ||
import static org.junit.Assert.*; | ||
|
||
public class LibraryTest { | ||
@Test public void testSomeLibraryMethod() { | ||
Library classUnderTest = new Library(); | ||
assertTrue("someLibraryMethod should return 'true'", classUnderTest.someLibraryMethod()); | ||
} | ||
} |