Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jamierocks committed Oct 15, 2019
1 parent 46917fc commit 70e59fb
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 5 deletions.
99 changes: 94 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,105 @@
apply plugin: 'java'
apply plugin: 'maven'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion

group = 'org.cadixdev'
version = '0.1.0-SNAPSHOT'
archivesBaseName = project.name.toLowerCase()
version = '0.1.0'

repositories {
mavenCentral()
}

dependencies {
compile 'org.cadixdev:bombe:0.3.1'
compile 'org.cadixdev:bombe-asm:0.3.1'
compile "org.cadixdev:bombe:$bombeVersion"
compile "org.cadixdev:bombe-asm:$bombeVersion"
}

processResources {
from 'LICENSE.txt'
}

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

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

artifacts {
archives javadocJar
archives sourcesJar
}

if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
apply plugin: 'signing'
signing {
required { !version.endsWith('-SNAPSHOT') && gradle.taskGraph.hasTask(tasks.uploadArchives) }
sign configurations.archives
}
}

uploadArchives {
repositories {
mavenDeployer {
// Maven Central
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}

snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
}

pom {
artifactId = project.archivesBaseName

project {
name = project.name
description = project.description
packaging = 'jar'
url = project.url
inceptionYear = project.inceptionYear

scm {
url = 'https://github.com/CadixDev/Atlas'
connection = 'scm:git:https://github.com/CadixDev/Atlas.git'
developerConnection = 'scm:git:[email protected]:CadixDev/Atlas.git'
}

issueManagement {
system = 'GitHub'
url = 'https://github.com/CadixDev/Atlas/issues'
}

licenses {
license {
name = 'Mozilla Public License 2.0'
url = 'https://opensource.org/licenses/MPL-2.0'
distribution = 'repo'
}
}

developers {
developer {
id = 'jamierocks'
name = 'Jamie Mansfield'
email = '[email protected]'
url = 'https://www.jamiemansfield.me/'
timezone = 'Europe/London'
}
}
}
}
}
}
}
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# Project Information
name = Atlas
url = https://github.com/CadixDev/Atlas
description = Plain-and-simple binary transformer for Java artifacts
inceptionYear = 2019

# Build Settings
javaVersion = 1.8
bombeVersion = 0.3.1

0 comments on commit 70e59fb

Please sign in to comment.