apply plugin: "groovy" defaultTasks "build" sourceCompatibility = 1.7 targetCompatibility = 1.7 ext { baseVersion = "0.4.2" isSnapshot = true snapshotAppendix = "-SNAPSHOT" projectVersion = baseVersion + (isSnapshot ? snapshotAppendix : "") fregeBaseVersion = "3.23.288" fregeClassifier = "-gaa3af0c" fregeVersion = "$fregeBaseVersion$fregeClassifier" // work around https://issues.gradle.org/browse/GRADLE-3281 def home = new File(System.getProperty("user.home")) def propfile = new File(home, ".gradle/gradle.properties") props = new Properties() propfile.withReader { props.load(it) System.setProperty "gradle.publish.key" , props.'gradle.publish.key' System.setProperty "gradle.publish.secret", props.'gradle.publish.secret' } } version = projectVersion group = 'org.frege-lang' repositories { mavenLocal() mavenCentral() } dependencies { compile "org.frege-lang:frege:$fregeVersion" compile "org.frege-lang:frege-repl-core:1.2" compile "org.frege-lang:frege-native-gen:1.3" compile gradleApi() compile localGroovy() } // using the publishing plugin buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "com.gradle.publish:plugin-publish-plugin:0.9.1" } } // Details on how to publish to the gradle plugin portal // Go to http://plugins.gradle.org, get yourself a publishing key // and add it to ~/.gradle/gradle.properties as // For publishing, run the task publishPlugins. apply plugin: "com.gradle.plugin-publish" // The configuration example below shows the minimum required properties // configured to publish your plugin to the plugin portal pluginBundle { website = 'https://github.com/Frege/frege-gradle-plugin' vcsUrl = 'https://github.com/Frege/frege-gradle-plugin' description = 'Enabling Frege for compilation, testing, documentation, and supporting tools.' tags = ['frege', 'haskell', 'java'] plugins { fregePlugin { id = 'org.frege-lang' displayName = 'Frege plugin' } } }