Enhanced tool management in OllamaObject and added Maven publishing configuration.
Some checks failed
build / build (push) Has been cancelled
Some checks failed
build / build (push) Has been cancelled
- Updated `OllamaObject` to support tool registration with sources. - Improved error handling and debug logging in multiple classes. - Added Maven plugin and publication setup in `build.gradle`. - Updated version to `1.3`. Signed-off-by: Zacharias <zacharias@4zellen.se>
This commit is contained in:
31
build.gradle
31
build.gradle
@@ -7,6 +7,9 @@ group = 'me.zacharias'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
allprojects {
|
||||
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
@@ -43,4 +46,32 @@ subprojects {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
// Make Javadoc generation non-fatal to avoid publish failures on bad Javadoc
|
||||
tasks.withType(Javadoc).configureEach {
|
||||
options.addBooleanOption('Xdoclint:none', true)
|
||||
failOnError = false
|
||||
}
|
||||
|
||||
// Configure local Maven publishing for modules that have a Java component
|
||||
afterEvaluate { proj ->
|
||||
if (components.findByName("java") != null) {
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
if (tasks.findByName('sourcesJar')) artifact tasks.sourcesJar
|
||||
if (tasks.findByName('javadocJar')) artifact tasks.javadocJar
|
||||
pom {
|
||||
name = proj.name
|
||||
description = "${proj.name} module of AI-test"
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user