Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_projects
nexus_vdi
nexus
Commits
fd05ca49
Commit
fd05ca49
authored
1 month ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
Ongoing work: splitting up nexus-server and clients build mechanism into separate makefiles
parent
27c79e5b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
server/Makefile
+22
-0
22 additions, 0 deletions
server/Makefile
server/buildversion/version.go
+15
-0
15 additions, 0 deletions
server/buildversion/version.go
server/config/config.go
+1
-3
1 addition, 3 deletions
server/config/config.go
with
38 additions
and
3 deletions
server/Makefile
0 → 100644
+
22
−
0
View file @
fd05ca49
CURRENT_DATE
=
$(
shell
eval
"date -u +'%Y-%m-%d at %H:%M:%S'"
)
GIT_COMMIT
=
$(
shell
eval
"git rev-parse HEAD"
)
BUILD_FLAGS
=
-ldflags
=
"-X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/buildversion.buildDate=
$(
CURRENT_DATE
)
' -X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/buildversion.gitCommit=
$(
GIT_COMMIT
)
'"
BUILD_DIR
=
build
SERVER_BINARY
=
nexus-server
help
:
@
echo
"Available targets:"
@
echo
" build Build nexus-server binaries"
@
echo
" clean Delete nexus-server binaries"
$(BUILD_DIR)
:
@
mkdir
-p
$@
@
echo
"[Building nexus-server]"
@
go build
$(
BUILD_FLAGS
)
-o
$(
BUILD_DIR
)
/
$(
SERVER_BINARY
)
@
echo
"OK"
clean
:
@
/bin/rm
-rf
$(
BUILD_DIR
)
@
echo
"OK"
.PHONY
:
clean
This diff is collapsed.
Click to expand it.
server/buildversion/version.go
0 → 100644
+
15
−
0
View file @
fd05ca49
package
buildversion
var
(
// These variables are replaced by ldflags at build time
gitCommit
=
"n/a"
buildDate
=
"n/a"
)
func
GitCommit
()
string
{
return
gitCommit
}
func
BuildDate
()
string
{
return
buildDate
}
This diff is collapsed.
Click to expand it.
server/config/config.go
+
1
−
3
View file @
fd05ca49
...
@@ -7,11 +7,9 @@ import (
...
@@ -7,11 +7,9 @@ import (
"strings"
"strings"
"sync"
"sync"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/buildversion"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/logger"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/logger"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/version"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/server/version"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common/buildversion"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
"gopkg.in/ini.v1"
"gopkg.in/ini.v1"
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment