This file contains hidden or 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
//usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS io.smallrye:smallrye-open-api-core:2.0.3 | |
import static org.eclipse.microprofile.openapi.OASFactory.*; | |
import org.eclipse.microprofile.openapi.models.OpenAPI; | |
import io.smallrye.openapi.runtime.io.Format; | |
import io.smallrye.openapi.runtime.io.OpenApiSerializer; |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS fr.inria.gforge.spoon:spoon-core:8.4.0 | |
//DEPS org.slf4j:slf4j-simple:1.7.30 | |
import java.util.List; | |
import java.util.Set; | |
import spoon.Launcher; | |
import spoon.reflect.declaration.CtClass; | |
import spoon.reflect.declaration.CtField; |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>mvntmp</groupId> | |
<artifactId>mvntmp</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<repositories> | |
<repository> | |
<snapshots> | |
<enabled>false</enabled> |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS com.google.cloud.tools:jib-core:0.20.0 | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.Arrays; | |
import com.google.cloud.tools.jib.api.Containerizer; | |
import com.google.cloud.tools.jib.api.DockerDaemonImage; |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
// jar containing the Junit5 tests: | |
//DEPS com.company.test:lib:1.3.2 | |
// Junit console to start the test engine: | |
//DEPS org.junit.platform:junit-platform-console:1.8.2 | |
// engine to run the tests (tests are written with Junit5): | |
//DEPS org.junit.jupiter:junit-jupiter-engine:5.8.2 |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
// Junit console to start the test engine: | |
//DEPS org.junit.platform:junit-platform-console:1.8.2 | |
// engine to run the tests (tests are written with Junit5): | |
//DEPS org.junit.jupiter:junit-jupiter-engine:5.8.2 | |
import static org.junit.jupiter.api.Assertions.fail; |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS com.github.vlsi.mxgraph:jgraphx:4.2.2 | |
//JAVA 8 | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.net.URLDecoder; |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.gradle:gradle-tooling-api:7.4.2 | |
//DEPS org.slf4j:slf4j-simple:1.7.10 | |
//REPOS gradle-releases=https://repo.gradle.org/gradle/libs-releases | |
import java.io.File; | |
import org.gradle.tooling.GradleConnector; | |
import org.gradle.tooling.ProjectConnection; |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.List; | |
public class DisplayTree { | |
private static final boolean USE_UNICODE = false; | |
public static void main(final String[] args) { | |
final DisplayTree.Node node = new DisplayTree.Node("example") | |
.addChild(new Node("a")) |
This file contains hidden or 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.junit.jupiter:junit-jupiter-api:5.7.2 | |
//DEPS org.assertj:assertj-core:3.11.1 | |
//JAVA 17 | |
import static org.assertj.core.api.Assertions.assertThat; | |
import java.util.ArrayList; |