Skip to content

Commit 50d1eb6

Browse files
pditommasoclaude
andcommitted
Change environment variable from NPR_URL to NPR_API_URL
Update environment variable name for registry URL configuration to be more descriptive and consistent with API naming conventions. - Update RegistryPublishConfig to use NPR_API_URL instead of NPR_URL - Update README documentation with correct environment variable name - Update test comments for clarity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent dca9a87 commit 50d1eb6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

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

6262
#### API Key
@@ -77,7 +77,7 @@ npr.apiKey=your-secret-api-key
7777

7878
Using environment variables:
7979
```bash
80-
export NPR_URL=https://my-custom-registry.com/api
80+
export NPR_API_URL=https://my-custom-registry.com/api
8181
export NPR_API_KEY=your-secret-api-key
8282
./gradlew publishPlugin
8383
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RegistryPublishConfig {
3737
}
3838

3939
// Try environment variable
40-
def envVar = System.getenv('NPR_URL')
40+
def envVar = System.getenv('NPR_API_URL')
4141
if (envVar) {
4242
return envVar
4343
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class NextflowPluginTest extends Specification {
127127
return gradleProp.toString()
128128
}
129129

130-
// Mock environment variable for test
130+
// Mock environment variable for test (NPR_API_URL)
131131
return 'https://env-registry.com/api'
132132
}
133133
}

0 commit comments

Comments
 (0)