Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

# Binary files should be left untouched
*.jar binary

36 changes: 24 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
version: 2
updates:
- package-ecosystem: docker
directory: "/"
schedule:
interval: weekly
time: '11:00'
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
time: '11:00'
open-pull-requests-limit: 10

# Docker base image updates
- package-ecosystem: docker
directory: "/"
schedule:
interval: monthly
time: "11:00"
open-pull-requests-limit: 25

# Python (pip) dependencies
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
time: "11:00"
open-pull-requests-limit: 25

# GitHub Actions dependencies
- package-ecosystem: "github-actions"
directory: ".github/workflows"
schedule:
interval: monthly
time: "11:00"
open-pull-requests-limit: 25
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/bin/

# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
1 change: 1 addition & 0 deletions Catalog.html

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions KIDLspec.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
html, body {
height: 100%;
}
html {
display: table;
margin: auto;
}
body {
background-color: white;
color: #000;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-weight: normal;
font-size: 12px;
margin: 0;
padding: 20px;
display: table-cell;
vertical-align: middle;
}
span.space {
display: inline-block;
width: 7px;
}
span.tab {
display: inline-block;
width: 30px;
}
span.keyword {
font-weight: bold;
color: #008;
}
span.name {
color: #000; !important
}
span.deprecated {
text-decoration: line-through;
}
span.annotation {
color: #303030;
}
span.primitive {
font-weight: bold;
color: #066;
}
div.body {
background-color: #ffffff;
color: #3e4349;
padding: 0 30px;
}
div.comment {
color: #A0A0A0;
}
a {
color: #004b6b;
text-decoration: none;
}
a:hover {
color: #6d4100;
text-decoration: underline;
}
:target {
background-color: #ffa;
}
div.body p, div.body dd, div.body li {
line-height: 1.4em;
}
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SERVICE_CAPS = Catalog
#$(shell perl server_scripts/get_deploy_cfg.pm $(SERVICE_CAPS).port)
SERVICE_PORT = 5000
SPEC_FILE = catalog.spec
URL = https://kbase.us/services/catalog/rpc

#End of user defined variables

Expand All @@ -29,18 +28,18 @@ PATH := kb_sdk/bin:$(PATH)


compile-kb-module:
kb-sdk compile $(SPEC_FILE) \
--out . \
--html
kb-sdk compile $(SPEC_FILE) \
--out $(LIB_DIR) \
--plclname Bio::KBase::$(SERVICE_CAPS)::Client \
--jsclname javascript/Client \
--pyclname biokbase.$(SERVICE).Client \
--javasrc java \
--java \
--pysrvname biokbase.$(SERVICE).Server \
--pyimplname biokbase.$(SERVICE).Impl;
touch $(LIB_DIR)/biokbase/__init__.py
touch $(LIB_DIR)/biokbase/$(SERVICE)/__init__.py

--pyimplname biokbase.$(SERVICE).Impl
kb-sdk compile $(SPEC_FILE) \
--out . \
--java \
--javasrc src/main/java

# start/stop the service running out of THIS directory
build-local-server-control-scripts:
Expand Down
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Catalog Service release notes

## v2.3.1 - 9/3/2025
- Added a JITPack build for the catalog client

## v2.3.0 - 3/5/2025
- Removed all submodules(jars, kbapi_common, nms) as part of repository clean up.
- The MongoDB clients have been updated to the most recent version and the service tested against Mongo 7.
Expand Down
60 changes: 60 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'java'
id 'maven-publish'
}

group = 'com.github.kbase'

var VER_AUTH2_CLIENT = "0.5.0"
var VER_JAVA_COMMON = "0.3.0"

repositories {
mavenCentral()
maven {
name = "JitPack"
url = 'https://jitpack.io'
}
}

compileJava {
// TODO BUILD remove when we no longer support java 8, use `options.release = 11` if needed
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
}

java {
withSourcesJar()
withJavadocJar()
}

javadoc {
options {
// I don't know why this isn't working, but it's not worth spending time on right now
links "https://docs.oracle.com/javase/11/docs/api/"
links "https://javadoc.jitpack.io/com/github/kbase/auth2_client_java/$VER_AUTH2_CLIENT/javadoc/"
links "https://javadoc.jitpack.io/com/github/kbase/java_common/$VER_JAVA_COMMON/javadoc/"
}
}

publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}

dependencies {

// using older dependencies to not force upgrades on services that might not be able to
// handle them. Need to upgrade the services and then upgrade here
implementation "com.github.kbase:java_common:$VER_JAVA_COMMON"
implementation "com.fasterxml.jackson.core:jackson-databind:2.5.4"
implementation "com.github.kbase:auth2_client_java:$VER_AUTH2_CLIENT"
implementation 'javax.annotation:javax.annotation-api:1.3.2'

}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

org.gradle.configuration-cache=true

2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading