Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.skhatri:gradle-reposet-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.skhatri:gradle-reposet-plugin

Plugin to upload and download files from AWS S3 buckets

  • 0.1.2
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Intro

This is a gradle plugin to configure repositories and plugins dynamically for one or many of your projects.

Building

gradle clean build

Testing Local

#build the plugin locally
gradle clean build
cd example/local
gradle clean build -I init.gradle.kts

Testing Remote

cd example/remote
gradle clean build -I init.gradle.kts

Customizing

Additional repositories and plugins can be added for your project by providing a reposet.yaml file

plugins:
  - id: "org.springframework.boot"
    classpath: "org.springframework.boot:spring-boot-gradle-plugin:2.5.4"
  - id: "io.spring.dependency-management"
    classpath: "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
  - id: "org.sonarqube"
    classpath: "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8"
  - id: "jacoco"
  - id: "java"
  - id: "org.jetbrains.kotlin.plugin.spring"
    classpath: "org.jetbrains.kotlin:kotlin-allopen:1.5.21"
  - id: "org.jetbrains.kotlin.jvm"
    classpath: "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
  - id: "scala"

repositories:
  - id: "mavenCentral"
  - id: "libs"
    flatDir: "./../build/libs"
  - id: "my-enterprise-repo1"
    url: "http://some-company.internal/maven2/"

See build.gradle.kts and init.gradle.kts

One time configuration

save the following as $GRADLE_USER_HOME/init.d/init.gradle.kts

initscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("com.github.skhatri.reposet:com.github.skhatri.reposet.gradle.plugin:0.1.2")
    }
}
apply<com.github.skhatri.gradle.init.ReposetPlugin>()

Once set, you can also drop a reposet.yaml into $GRADLE_USER_HOME/init.d/reposet.yaml

plugins:
    - id: java
repositories:
    - id: "my-enterprise-repo"
      url: "https://internal.company/maven2"
    - id: "mavenCentral"

This way all your projects will use the repositories you configure in a single place.

Publishing

gradle clean build publish
gradle clean build publishPlugins -Ptarget=gradle

FAQs

Package last updated on 17 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc