Giter Club home page Giter Club logo

gradle-commons's Introduction

gradle-commons

This library provides APIs for the use of Wooga's Gradle plugins.

Development

Code of Conduct

LICENSE

Copyright 2021 Wooga GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

gradle-commons's People

Contributors

azurelol avatar joaquimmnetto avatar larusso avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

gradle-commons's Issues

Support environment variable mapping analog to OptionMapper

Description

For some cli tools we want to wrap it is sometimes neccesary or better to provide certain values with the environment.
We have a great system to declare and map gradle task properties to cli options. There is no way of doing the same for environment variables. I suggest to add this functionality anolog to how OptionMapper works so one can delclare custom mappings from task properties to specific environment variable names.

Add BaseSpec trait for plugin projects

Description

If we want to use trait objects more in the future which also bring in the initialization of properties and providers we need a good base for these factories. At the moment each plugin is creating it's own BaseSpec class. It would make sense if this is provided by this library

package com.wooga.gradle.commons

import org.gradle.api.file.ProjectLayout
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ProviderFactory

import javax.inject.Inject

trait BaseSpec {
    @Inject
    ProjectLayout getLayout() {
        throw new Exception("ProjectLayout is supposed to be injected here by gradle")
    }

    @Inject
    ProviderFactory getProviderFactory() {
        throw new Exception("ProviderFactory is supposed to be injected here by gradle")
    }

    @Inject
    ObjectFactory getObjects() {
        throw new Exception("ObjectFactory is supposed to be injected here by gradle")
    }
}

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.