Skip to content

Commit

Permalink
chore(examples): Move them to their own sourceset (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest authored Oct 3, 2023
1 parent 2a69baf commit 4b5db92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ compileJava {
options.release = 8
}

sourceSets {
examples {
java {
}
}
}

dependencies {
implementation 'io.reactivex.rxjava3:rxjava:3.1.8'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package examples;
package software.amazon.nio.spi.examples;

import java.io.IOException;
import java.net.URI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package examples;

import software.amazon.nio.spi.s3.S3Path;
package software.amazon.nio.spi.examples;

import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -36,7 +34,7 @@ public static void main(String[] args) throws IOException {
final Path path = Paths.get(URI.create(pathString));

// proves that the correct path type is being used
assert path instanceof S3Path;
assert path.getClass().getName().contains("S3Path");

System.out.println("*** READING FROM "+path.toUri()+" ***");
Files.readAllLines(path)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package examples;
package software.amazon.nio.spi.examples;


import java.io.IOException;
Expand Down

0 comments on commit 4b5db92

Please sign in to comment.