- The preferred choice is via sdkman:
sdk install jreleaser - Other choices available explained at https://github.com/jreleaser/jreleaser
- Depending of your choice you may need Java preinstalled (Java 8+)
- Verify the installation by invoking
jreleaser -V. It should be version1.2.0 - Also install
1.1.0by invokingsdk install jreleaser 1.1.0.
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
| package com.acme; | |
| import io.agroal.api.AgroalDataSource; | |
| import javax.inject.Inject; | |
| import javax.inject.Named; | |
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.MediaType; |
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
| @Grab('com.oracle.database.jdbc:ojdbc8:19.7.0.0') | |
| @Grab('com.oracle.database.jdbc:ucp:19.7.0.0') | |
| import java.sql.Connection | |
| import java.sql.SQLException | |
| import java.sql.Statement | |
| import java.sql.ResultSet | |
| import oracle.ucp.jdbc.PoolDataSourceFactory | |
| import oracle.ucp.jdbc.PoolDataSource | |
| PoolDataSource pds = PoolDataSourceFactory.poolDataSource.with(true) { |
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
| .PHONY: build | |
| build: | |
| go get ./... | |
| go build -o target/${GOOS}-${GOARCH}/ \ | |
| -ldflags "-X 'main.gmVersion=$(GM_VERSION)' -X 'main.gmBuildCommit=$(GIT_COMMIT)' -X 'main.gmBuildTimestamp=$(BUILD_TIMESTAMP)'" gm.go |
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: | |
| version: '1.0.0-SNAPSHOT' | |
| name: helloworld | |
| description: HelloWorld in Java | |
| longDescription: HelloWorld in Java | |
| links: | |
| homepage: https://github.com/jreleaser/helloworld-java-bin | |
| authors: | |
| - Andres Almiray | |
| license: APACHE-2.0 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <?import javafx.geometry.Insets?> | |
| <?import javafx.scene.control.Tab?> | |
| <?import javafx.scene.layout.GridPane?> | |
| <?import javafx.scene.text.Text?> | |
| <?import javafx.scene.text.TextFlow?> | |
| <Tab text="Alerts" closable="false"> | |
| <GridPane hgap="10" vgap="10" styleClass="page"> | |
| <padding> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| SPDX-License-Identifier: Apache-2.0 | |
| Copyright 2023 Andres Almiray. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at |
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 $? | |
| //JAVA 11+ | |
| //REPOS jitpack | |
| //REPOS mavencentral | |
| //DEPS com.github.jreleaser.jreleaser:jreleaser-mastodon-java-sdk:main-a330172c0d-1 | |
| //DEPS org.slf4j:slf4j-simple:2.0.6 | |
| import org.jreleaser.sdk.mastodon.MastodonSdk; | |
| import org.jreleaser.logging.SimpleJReleaserLoggerAdapter; | |
| import java.util.List; | |
| import static org.jreleaser.util.StringUtils.requireNonBlank; |
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
| <!-- attach copied JARs to build --> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>build-helper-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>attach-artifacts</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>attach-artifact</goal> |
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
| $ gm clean build | |
| Using gradle at '/Users/aalmiray/dev/github/discocli/gradlew' to run buildFile '/Users/aalmiray/dev/github/discocli/build.gradle': | |
| Downloading https://services.gradle.org/distributions/gradle-7.4.1-bin.zip | |
| ...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100% | |
| Welcome to Gradle 7.4.1! | |
| Here are the highlights of this release: | |
| - Aggregated test and JaCoCo reports | |
| - Marking additional test source directories as tests in IntelliJ |
NewerOlder