jitpack / gradle-modular Goto Github PK
View Code? Open in Web Editor NEWmulti module gradle project
multi module gradle project
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.