Skip to content

Commit

Permalink
Merge pull request #7 from devondragon/issue-6-Rename-Library-Configu…
Browse files Browse the repository at this point in the history
…ration-File

Refactored configuration file name and location
  • Loading branch information
devondragon authored Oct 21, 2024
2 parents bc1023a + 4f0fe3f commit e3bef62
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 12 deletions.
25 changes: 25 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,28 @@ To build the project, run:

Contributions are welcome! Please fork the repository and submit a pull request with your changes.



# Build and Publish Command Reference

## Publish to Local Maven

```shell
gradle publishToMavenLocal --refresh-dependencies
```

## Publish to Private Maven repository

```shell
gradle publishALlPublicationsToReposiliteRepositoryRepository
```


## Publish to Maven Central

```shell
gradle publishAndReleaseToMavenCentral --no-configuration-cache
```



4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Add the following dependency to your `pom.xml`:
<dependency>
<groupId>com.digitalsanctuary</groupId>
<artifactId>ds-spring-ai-client</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
</dependency>
```

Expand All @@ -45,7 +45,7 @@ Add the following dependency to your `build.gradle`:

```groovy
dependencies {
implementation 'com.digitalsanctuary:ds-spring-ai-client:1.1.2'
implementation 'com.digitalsanctuary:ds-spring-ai-client:1.1.3'
}
```

Expand Down
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar

group 'com.digitalsanctuary.springaiclient'
version '1.1.2'
version '1.1.3'
description = 'Simple SpringBoot AI Client Library'

ext {
Expand Down Expand Up @@ -135,3 +135,18 @@ mavenPublishing {
tasks.named("publishMavenPublicationToMavenCentralRepository") {
dependsOn("signMavenPublication")
}

publishing {
repositories {
maven {
name = 'reposiliteRepository'
url = uri('https://reposilite.tr0n.io/private')
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
// more repositories can go here
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.digitalsanctuary.springaiclient.adapters.openai.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import lombok.Data;

Expand All @@ -13,6 +14,7 @@
*/
@Data
@Component
@PropertySource("classpath:config/dsspringaiconfig.properties")
@ConfigurationProperties(prefix = "ds.ai.openai")
public class OpenAIConfigProperties {

Expand Down
9 changes: 0 additions & 9 deletions src/main/resources/application.yml

This file was deleted.

6 changes: 6 additions & 0 deletions src/main/resources/config/dsspringaiconfig.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Spring Boot application configuration properties
ds.ai.openai.api-key=
ds.ai.openai.model=gpt-4o
ds.ai.openai.output-tokens=4096
ds.ai.openai.api-endpoint=https://api.openai.com/v1/chat/completions
ds.ai.openai.system-prompt=You are a helpful assistant.

0 comments on commit e3bef62

Please sign in to comment.