Commit 65ff4981 authored by dgelessus's avatar dgelessus
Browse files

Add .editorconfig and indent build.gradle consistently

parent 64011d95
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
insert_final_newline = true
...@@ -8,55 +8,55 @@ project.group = 'de.hhu.stups' ...@@ -8,55 +8,55 @@ project.group = 'de.hhu.stups'
project.archivesBaseName = "sablecc" project.archivesBaseName = "sablecc"
wrapper { wrapper {
gradleVersion = "5.2.1" gradleVersion = "5.2.1"
distributionType = Wrapper.DistributionType.ALL distributionType = Wrapper.DistributionType.ALL
} }
allprojects { allprojects {
sourceCompatibility = 1.6 sourceCompatibility = 1.6
targetCompatibility = 1.6 targetCompatibility = 1.6
} }
dependencies { dependencies {
testCompile 'junit:junit:4.8.2' testCompile 'junit:junit:4.8.2'
} }
task javadocJar(type: Jar) { task javadocJar(type: Jar) {
classifier = 'javadoc' classifier = 'javadoc'
from javadoc from javadoc
} }
task sourcesJar(type: Jar) { task sourcesJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
} }
jar { jar {
manifest { manifest {
attributes 'Main-Class': 'org.sablecc.sablecc.SableCC' attributes 'Main-Class': 'org.sablecc.sablecc.SableCC'
} }
} }
artifacts { artifacts {
archives javadocJar, sourcesJar archives javadocJar, sourcesJar
} }
task writeVersion() { task writeVersion() {
doFirst { doFirst {
def buildconstants_class = """ def buildconstants_class = """
package org.sablecc.sablecc; package org.sablecc.sablecc;
public class Version public class Version
{ {
public static final String VERSION = "${project.version}"; public static final String VERSION = "${project.version}";
}
"""
File f = file("src/main/java/org/sablecc/sablecc/Version.java")
f.delete()
f << buildconstants_class
} }
"""
File f = file("src/main/java/org/sablecc/sablecc/Version.java")
f.delete()
f << buildconstants_class
}
} }
compileJava { compileJava {
...@@ -67,54 +67,54 @@ task deploy(dependsOn: [jar,test,javadoc], group: 'Build') ...@@ -67,54 +67,54 @@ task deploy(dependsOn: [jar,test,javadoc], group: 'Build')
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
apply plugin: 'signing' apply plugin: 'signing'
signing { signing {
sign configurations.archives sign configurations.archives
} }
uploadArchives { uploadArchives {
repositories { repositories {
mavenDeployer { mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } 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/") { repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword) authentication(userName: ossrhUsername, password: ossrhPassword)
} }
pom.project { snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
name 'SableCC - Stups fork' authentication(userName: ossrhUsername, password: ossrhPassword)
packaging 'jar'
// optionally artifactId can be defined here
description 'This version of SableCC enriches the abstract syntax tree with information about tokens.'
url 'https://github.com/bendisposto/sablecc-stups'
licenses {
license {
name 'GNU Lesser General Public License, Version 2.1'
url 'http://www.gnu.org/licenses/lgpl-2.1.html'
}
} }
scm { pom.project {
connection 'scm:git:git://github.com/bendisposto/sablecc-stups.git' name 'SableCC - Stups fork'
developerConnection 'scm:git:git@github.com:bendisposto/sablecc-stups.git' packaging 'jar'
// optionally artifactId can be defined here
description 'This version of SableCC enriches the abstract syntax tree with information about tokens.'
url 'https://github.com/bendisposto/sablecc-stups' url 'https://github.com/bendisposto/sablecc-stups'
}
licenses {
license {
name 'GNU Lesser General Public License, Version 2.1'
url 'http://www.gnu.org/licenses/lgpl-2.1.html'
}
}
developers { scm {
developer { connection 'scm:git:git://github.com/bendisposto/sablecc-stups.git'
id 'bendisposto' developerConnection 'scm:git:git@github.com:bendisposto/sablecc-stups.git'
name 'Jens Bendisposto' url 'https://github.com/bendisposto/sablecc-stups'
email 'jens@bendisposto.de' }
developers {
developer {
id 'bendisposto'
name 'Jens Bendisposto'
email 'jens@bendisposto.de'
}
} }
} }
} }
} }
} }
} }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment