Skip to content

Instantly share code, notes, and snippets.

View jitpack-io's full-sized avatar

JitPack.io jitpack-io

View GitHub Profile
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.2.3'
id 'java'
id 'maven'
}
scmVersion {
tag {
prefix = ''
serialize = {config, version -> "$version-RELEASE"}
@cdegroot
cdegroot / howto.md
Last active November 2, 2015 10:42
How-to JitPack with sbt cross compilation

Introduction

JitPack just added support for multiple Scala versions. This quick how-to describes the changes I made to one of my little projects to make everything work.

SBT changes

If you want to release for multiple Scala versions, you need to test it. Therefore, you need to add the versions you want to test against in project/Build.scala, adding:

@jitpack-io
jitpack-io / init.gradle
Created December 7, 2015 13:29
JitPack repository in Gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.dsl.RepositoryHandler
apply plugin:JitPackRepositoryPlugin
class JitPackRepositoryPlugin implements Plugin<Gradle> {
void apply(Gradle gradle) {
@jitpack-io
jitpack-io / init.gradle
Last active March 18, 2023 13:38
init.gradle script to print Maven repositories. Copy to ~/.gradle/
# copy script to ~/.gradle/init.gradle
gradle.projectsEvaluated {
allprojects { project ->
task printRepos() {
println("Project repositories: ${project.name}")
repositories {
all { ArtifactRepository repo ->
@jitpack-io
jitpack-io / jitpack.yml
Last active December 31, 2022 15:07
Publish an existing jar file to jitpack
install:
- FILE="-Dfile=jars/my-library.jar"
- mvn install:install-file $FILE -DgroupId=com.github.user -DartifactId=repo -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true