Skip to content

Instantly share code, notes, and snippets.

JitPack.io jitpack-io

Block or report user

Report or block jitpack-io

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jitpack-io
jitpack-io / jitpack.yml
Last active May 22, 2019
Publish an existing jar file to jitpack
View jitpack.yml
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
@jitpack-io
jitpack-io / build.gradle
Created Mar 14, 2019
Publish Android sources jar on Gradle 5+
View build.gradle
apply plugin: 'digital.wup.android-maven-publish'
group = 'com.github.User'
version = '0.1'
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
@jitpack-io
jitpack-io / init.gradle
Last active Nov 30, 2018
init.gradle script to print Maven repositories. Copy to ~/.gradle/
View init.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 / init.gradle
Created Dec 7, 2015
JitPack repository in Gradle
View init.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 / gist:87cc559e3a71459758eb
Last active Sep 16, 2015 — forked from reiz/gist:6203767
Creating a MavenProject from an ArtifactInfo inside a maven plugin.
View gist:87cc559e3a71459758eb
protected MavenProject buildProjectModel(ArtifactInfo artifactInfo) throws Exception {
try {
ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
configuration.setLocalRepository( localRepository );
configuration.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL );
configuration.setProcessPlugins( false );
configuration.setRepositoryMerging( ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT );
Properties properties = new Properties( );
for ( String key : session.getSystemProperties( ).keySet() ){
properties.put( key, session.getSystemProperties().get(key) );
View axion-release configuration for publishing github releases as X.X.X-RELEASE
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.2.3'
id 'java'
id 'maven'
}
scmVersion {
tag {
prefix = ''
serialize = {config, version -> "$version-RELEASE"}
You can’t perform that action at this time.