Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gradle-cobol-plugin/build.gradle
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73 lines (62 sloc)
1.49 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'eclipse' | |
apply plugin: 'groovy' | |
apply plugin: 'java' | |
apply plugin: 'java-gradle-plugin' | |
apply plugin: 'ivy-publish' | |
apply plugin: 'maven-publish' | |
repositories { | |
mavenCentral() | |
} | |
def applicationName = "CobolPlugin" | |
group = 'de.sebastianruziczka' | |
sourceCompatibility = '1.8' | |
targetCompatibility = '1.8' | |
version = '0.0.46' | |
def realVersion = '' | |
if (project.hasProperty("generateLatest")) { | |
realVersion = ' (' + version + ')' | |
println 'Publishing latest-' + realVersion | |
version = 'latest' | |
} | |
gradlePlugin{ | |
plugins { | |
cobol { | |
id = 'de.sebastianruziczka.Cobol' | |
implementationClass = 'de.sebastianruziczka.Cobol' | |
} | |
} | |
} | |
subprojects.each { subproject -> evaluationDependsOn(subproject.path)} | |
jar { | |
manifest { | |
attributes( | |
"Implementation-Title": project.name, | |
"Implementation-Version": (version + realVersion), | |
"Build-Date": new Date().format( 'dd.MM.yyyy' ) | |
) | |
} | |
into 'res', { | |
from 'res/main/groovy' | |
} | |
from { | |
configurations.compileOnly.collect { it.isDirectory() ? it : zipTree(it) } | |
} | |
subprojects.each { subproject -> | |
from subproject.configurations.archives.allArtifacts.files.collect { | |
zipTree(it) | |
} | |
} | |
subprojects.each { dependsOn("${it.name}:jar") } | |
} | |
publishing { | |
repositories { | |
ivy { | |
// change to point to your repo, e.g. http://my.org/repo | |
url "../repo/ivy" | |
} | |
maven { | |
// change to point to your repo, e.g. http://my.org/repo | |
url "../repo/mvn" | |
} | |
} | |
} | |