Skip to content

Commit

Permalink
use jitpack sample build.gradle
Browse files Browse the repository at this point in the history
move publish.gradle content into build.gradle
  • Loading branch information
earlygrey committed Jul 19, 2020
1 parent b709fc2 commit af83e9d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 32 deletions.
55 changes: 50 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,61 @@
plugins {
id 'java-library'
id 'maven-publish'
}
apply plugin: 'java'
apply plugin: 'maven'

group 'space.earlygrey'
version '1.0.0-SNAPSHOT'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenLocal()
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

install {
repositories.mavenInstaller {
pom.project {
name = 'Simple Graphs'
description = 'A simple graph library for java.'
url = 'https://github.com/earlygrey/simple-graphs'

licenses {
license {
name 'MIT License'
url 'https://mit-license.org/'
distribution 'repo'
}
}
developers {
developer {
id 'earlygrey'
name 'earlygrey'
email '[email protected]'
}
}
scm {
url 'https://github.com/earlygrey/simple-graphs'
connection 'scm:https://github.com/earlygrey/simple-graphs.git'
developerConnection 'scm:git://github.com/earlygrey/simple-graphs.git'
}
}
}
}
27 changes: 0 additions & 27 deletions publish.gradle

This file was deleted.

0 comments on commit af83e9d

Please sign in to comment.