Git Product home page Git Product logo

gradle-modular's Introduction

gradle-modular

Example gradle project with two modules:

  • client
  • server

To install each module individually use com.github.User.Repo for groupId and module name as artifact id:

 compile 'com.github.jitpack.gradle-modular:client:1.1'
 compile 'com.github.jitpack.gradle-modular:server:1.1'

gradle-modular's People

Contributors

jitpack-io avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

gradle-modular's Issues

Build Failed! Could not resolve: my dependency

I am trying to do the same you have shown in this example. Yeah, want to use my sub modules just by a dependency key in build.gradle file. So I have created a parent project, and its build.gradle is same as yours...

apply plugin: 'java'
apply plugin: 'eclipse'

allprojects {
	version = "1.0"
}

subprojects {
	apply plugin: 'java'
	apply plugin: 'maven'
	
	sourceCompatibility = 1.8 // java 8
	targetCompatibility = 1.8
	
	task sourcesJar(type: Jar, dependsOn: classes) {
	    classifier = 'sources'
	    from sourceSets.main.allSource
	}
	
	task javadocJar(type: Jar, dependsOn: javadoc) {
	    classifier = 'javadoc'
	    from javadoc.destinationDir
	}
	
	artifacts {
	    archives sourcesJar
	    archives javadocJar
	}
}

// In this section you declare where to find the dependencies of your project
repositories {
    // Use jcenter for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
}

as well settings.gradle

rootProject.name = 'pype-commons'
include ':pdf-utils', ':file-utils', ':json-utils'

On console, while refreshing the gradle project, I am getting the following message...

CONFIGURE SUCCESSFUL in 0s
Could not resolve: com.github.m4monster.pype-commons:file-utils:v1.1.0

And while building the project, getting this...

Working Directory: C:\Workspace\pype-application
Gradle User Home: C:\Users\Khan\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.3
Java Home: C:\Program Files\Java\jdk1.8.0_162
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: build

:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.github.m4monster.pype-commons:file-utils:v1.1.0.
  Searched in the following locations:
      https://jcenter.bintray.com/com/github/m4monster/pype-commons/file-utils/v1.1.0/file-utils-v1.1.0.pom
      https://jcenter.bintray.com/com/github/m4monster/pype-commons/file-utils/v1.1.0/file-utils-v1.1.0.jar
  Required by:
      project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
1 actionable task: 1 executed

For more details, here's my repository for which I am doing all this...
https://github.com/m4monster/pype-commons

Project does not compile with latest gradle v7+

Project does not compile with latest gradle v7+

Build file '/Users/paul.verest/Workspaces/Try/jitpack-gradle-modular/build.gradle' line: 7

A problem occurred evaluating root project 'jitpack-gradle-modular'.
> Plugin with id 'maven' not found.

as maven plugin is removed, maven-published is suggested.

Otherwise used gradle wrapper to choose specific gradle version

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.