Skip to content

Commit

Permalink
version 0.1.2
Browse files Browse the repository at this point in the history
switched to different javax.vecmath implementation due to license issues
switched gradle plugin 'maven' to 'maven-publish'
  • Loading branch information
porst17 committed Jul 3, 2014
1 parent 7108898 commit aa63a77
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
group = 'de.mfo.jsurf'
version = '0.1.1'
version = '0.1.2'

apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'

targetCompatibility = 1.6
sourceCompatibility = 1.6

repositories {
mavenCentral()
maven {
url "http://download.tuxfamily.org/arakhne/maven"
}
maven { url "https://raw.github.com/IMAGINARY/maven-repository/master/" }
}

dependencies {
compile group: 'javax', name: 'vecmath', version: '1.5.2'
compile group: 'javax', name: 'vecmath', version: '1.2.0-hiranabe'
compile 'org.antlr:antlr-runtime:3.4@jar'
compile 'commons-cli:commons-cli:1.2'
}
Expand All @@ -26,16 +24,26 @@ task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}

uploadArchives {
repositories.mavenDeployer {
// TODO: change to official maven repo
repository( url: "file:///media/DATA/IMAGINARY/maven-repository" )
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}

// workflow for deploying:
// clone/pull https://github.com/IMAGINARY/maven-repository.git into '/media/DATA/IMAGINARY/maven-repository'
// gradle uploadArchives
// in '/media/DATA/IMAGINARY/maven-repository': git push origin master
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java

artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
// change if necessary
url "$projectDir/../maven-repository"
}
}
}

mainClassName = "de.mfo.jsurf.Main"
Expand Down

0 comments on commit aa63a77

Please sign in to comment.