This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml
.
It runs daily to sync the default branch and can be triggered manually for any branch.
$ jbang --fresh --verbose run main.java ✔ | |
[jbang] [0:197] jbang version 0.119.0 | |
[jbang] [0:206] Resolving resource ref: main.java | |
[jbang] [0:207] Resolved resource ref as: main.java (cached as: /private/tmp/main.java) | |
[jbang] [0:235] Building as fresh build explicitly requested. | |
[jbang] [0:235] Deleting folder /Users/ggastald/.jbang/cache/jars/main.java.5d001124fd5551723b3299813f66aa8e87f2199fdff3291a931df4527d289394/classes | |
[jbang] [0:237] Deleting folder /Users/ggastald/.jbang/cache/jars/main.java.5d001124fd5551723b3299813f66aa8e87f2199fdff3291a931df4527d289394/generated | |
[jbang] [0:239] Looking for JDK: 17 | |
[jbang] [0:242] Using JDK: 17 (17.0.12+7, default, /Users/ggastald/.jbang/currentjdk) |
#!/bin/bash | |
: ${1:?"groupId is required"} | |
: ${2:?"artifactId is required"} | |
: ${3:?"version is required"} | |
# eg. ~/monitor.sh org.wildfly.swarm spi 1.0.8.Final | |
GROUP_ID=${1//.//} | |
ARTIFACT_ID=$2 | |
VERSION=$3 |
///usr/bin/env jbang "$0" "$@" ; exit $? | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Base64; |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = false | |
max_line_length = 128 | |
tab_width = 4 | |
ij_continuation_indent_size = 8 | |
ij_formatter_off_tag = @formatter:off |
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<offline>false</offline> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>gastaldi</username> | |
<password>CHANGE_ME</password> | |
</server> | |
<server> |
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<offline>false</offline> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>gastaldi</username> | |
<password>CHANGE_ME</password> | |
</server> | |
<server> |
(function() { | |
window.OPENSHIFT_CONSTANTS.DISABLE_SERVICE_CATALOG_LANDING_PAGE = true | |
}()); |
#!/bin/bash | |
# Requires jq and yarn | |
for row in $(cat package.json | jq '.dependencies'| jq 'keys[]' -r); do | |
yarn add ${row} -W --exact | |
done | |
for row in $(cat package.json | jq '.devDependencies'| jq 'keys[]' -r); do | |
yarn add ${row} -W --exact -D | |
done |
package org.jboss.forge.addon.database.tools.generate; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
import org.jboss.forge.addon.database.tools.connections.ConnectionProfile; | |
import org.junit.Rule; | |
import org.junit.Test; |