Giter VIP home page Giter VIP logo

gradle-defaults's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

pgoodrich

gradle-defaults's Issues

Feature Request: Update gradle-git version to latest

We are seeing a bug in gradle-git 1.3.2 where the inferred version does not update to the latest tag. This is reproduceable by all repo users.
For example, we have released version 1.14.0, local repos are updated to latest master, and the inferred version for future builds remains at 1.13.1-dev instead of 1.14.1-dev

Unfortunately we do not know yet how it ended up in this corrupted state or an easy fix. Deleting the release/tag and re-releasing 1.14.0 does not seem to fix the issue.

For now we are working around it but wanted to make you aware ๐Ÿ˜ƒ

Improve License defaults

  • Check that the root of the project contains a LICENSE file
  • Check that a LICENSE_HEADER file exists in the gradle dir
  • Make sure that the binTray and license plugins use the same information
  • Allow the use of a "common name" (e.g., "APACHE-2") to specify the license information
    • That should auto-populate the LICENSE.txt and LICENSE_HEADER files
    • For a list of some of the more common licenses, see license-maven-plugin templates
    • Allow for PROPRIETARY for non-opensourced materials
    • If openSource = false disable this plugin or assume PROPRIETARY
  • If any of those checks fails, fail and offer help
  • Put a copy of the LICENSE file into META-INF

Do setup for Kotlin

Right now you still need to do at least:

buildscript {
    ext.kotlin_version = '1.0.6'
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
apply plugin: 'com.mooregreatsoftware.kotlin'

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

to have a functioning build.

Make applying "com.mooregreatsoftware.kotlin" automatically:

  • set the buildscript block
  • register the plugin
  • set up dokka
  • add the stdlib to the classpath
  • ...

Is "orgId" a required project defaults property?

@jdigger Very minor issue with an easy fix on the project config side. Wanted to check what the intention is before I made a pull request to change it. When you run gradlew properties to view the project environment properties for example, it fails if orgId is not set.

Execution failed for task ':properties'.

"orgId" is not set for "defaults" on project

throw IllegalStateException("\"orgId\" is not set for \"${DefaultsExtension.NAME}\" on ${project.name}")

Add Spock dependency

testCompile "org.spockframework:spock-core:1.0-groovy-2.4", {
    exclude group: 'org.codehaus.groovy', module: 'groovy-all'
    exclude group: 'org.hamcrest', module: 'hamcrest-core'
}

There is a gotcha with the Groovy version...

If the project doesn't already have Groovy, add it as a testCompile. Otherwise use the version of Groovy the project already has.

Fill out more of the JAR Manifest

Something along the lines of

def gitConfig = new org.eclipse.jgit.storage.file.FileRepositoryBuilder().findGitDir().build().config
def userEmail = gitConfig.getString('user', null, 'email')

jar {
    manifest {
        attributes 'Implementation-Title': description,
            'Implementation-Version': version,
            'Built-By': userEmail ?: '[email protected]',
            'Built-Date': new Date(),
            'Built-JDK': System.getProperty('java.version') ?: '1.7',
            'Built-Gradle': gradle.gradleVersion
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.