Skip to content

Commit f90cb3c

Browse files
pditommasoclaude
andcommitted
Change gradle property from npr.url to npr.apiUrl
Update gradle property name for registry URL configuration to be more descriptive and consistent with API naming conventions. - Update RegistryPublishConfig to use npr.apiUrl instead of npr.url - Update README documentation and examples - Update unit test to use correct property name Now both gradle property names are consistent: - npr.apiUrl for registry URL - npr.apiKey for API key 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 50d1eb6 commit f90cb3c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The registry publishing configuration supports multiple ways to provide the URL
5555
#### Registry URL
5656
The registry URL can be configured via (in order of priority):
5757
1. `nextflowPlugin.publishing.registry.url` in build.gradle
58-
2. Gradle property: `-Pnpr.url=https://your-registry.com/api`
58+
2. Gradle property: `-Pnpr.apiUrl=https://your-registry.com/api`
5959
3. Environment variable: `NPR_API_URL=https://your-registry.com/api`
6060
4. Default: `https://plugin-registry.seqera.io/api`
6161

@@ -71,7 +71,7 @@ The API key can be configured via (in order of priority):
7171

7272
Using gradle.properties:
7373
```properties
74-
npr.url=https://my-custom-registry.com/api
74+
npr.apiUrl=https://my-custom-registry.com/api
7575
npr.apiKey=your-secret-api-key
7676
```
7777

src/main/groovy/io/nextflow/gradle/registry/RegistryPublishConfig.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RegistryPublishConfig {
3131
}
3232

3333
// Try gradle property
34-
def gradleProp = project.findProperty('npr.url')
34+
def gradleProp = project.findProperty('npr.apiUrl')
3535
if (gradleProp) {
3636
return gradleProp.toString()
3737
}

src/test/groovy/io/nextflow/gradle/NextflowPluginTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class NextflowPluginTest extends Specification {
101101

102102
def "should resolve registry URL from gradle property"() {
103103
given:
104-
project.ext.set('npr.url', 'https://gradle-prop-registry.com/api')
104+
project.ext.set('npr.apiUrl', 'https://gradle-prop-registry.com/api')
105105
def config = new RegistryPublishConfig(project)
106106

107107
when:
@@ -122,7 +122,7 @@ class NextflowPluginTest extends Specification {
122122
}
123123

124124
// Try gradle property
125-
def gradleProp = project.findProperty('npr.url')
125+
def gradleProp = project.findProperty('npr.apiUrl')
126126
if (gradleProp) {
127127
return gradleProp.toString()
128128
}

0 commit comments

Comments
 (0)